|
@@ -40,7 +40,12 @@ namespace ShabaninDemoEkz
|
|
|
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+ public AddChanged()
|
|
|
+ {
|
|
|
+ InitializeComponent();
|
|
|
+ SaveBtn.Visibility = Visibility.Collapsed;
|
|
|
+ DelBtn.Visibility = Visibility.Collapsed;
|
|
|
+ }
|
|
|
private void SaveBtn_Click(object sender, RoutedEventArgs e)
|
|
|
{
|
|
|
|
|
@@ -55,8 +60,6 @@ namespace ShabaninDemoEkz
|
|
|
BaseConnect.BaseModel.SaveChanges();
|
|
|
MessageBox.Show("Изменения сохранены", "Сохранение изменений", MessageBoxButton.OK, MessageBoxImage.Information);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -87,5 +90,10 @@ namespace ShabaninDemoEkz
|
|
|
MessageBox.Show("Ошибка удаления", "Ошибка", MessageBoxButton.OK, MessageBoxImage.Error);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ private void SaveBtn1_Click(object sender, RoutedEventArgs e)
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|