|
@@ -0,0 +1,13 @@
|
|
|
+ if (ProductListBox.SelectedItems.Count >= 1)
|
|
|
+ {
|
|
|
+ Product product =(Product)ProductListBox.SelectedItem;
|
|
|
+ AddChangeProductWindow addChangeProductWindow = new AddChangeProductWindow(product);
|
|
|
+ if ((bool)addChangeProductWindow.ShowDialog())
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ MessageBox.Show("Выбрано более одного элемента");
|
|
|
+ }
|