Ejemplo n.º 1
0
        private void EditMaterial_Click(object sender, RoutedEventArgs e)
        {
            MaterialHelper.AddEditTitle = "Изменение материала";
            AddEditMaterialWindow addEdit = new AddEditMaterialWindow(LVMaterial.SelectedItem as Material);

            addEdit.ShowDialog();

            Context.SaveChanges();
            Filter();
        }
Ejemplo n.º 2
0
        private void AddMaterial_Click(object sender, RoutedEventArgs e)
        {
            MaterialHelper.AddEditTitle = "Добавление материала";
            AddEditMaterialWindow addEdit = new AddEditMaterialWindow();

            addEdit.ShowDialog();

            Context.SaveChanges();
            Filter();
        }