private void EditMaterial_Click(object sender, RoutedEventArgs e) { MaterialHelper.AddEditTitle = "Изменение материала"; AddEditMaterialWindow addEdit = new AddEditMaterialWindow(LVMaterial.SelectedItem as Material); addEdit.ShowDialog(); Context.SaveChanges(); Filter(); }
private void AddMaterial_Click(object sender, RoutedEventArgs e) { MaterialHelper.AddEditTitle = "Добавление материала"; AddEditMaterialWindow addEdit = new AddEditMaterialWindow(); addEdit.ShowDialog(); Context.SaveChanges(); Filter(); }