コード例 #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();
        }
コード例 #2
0
        private void AddMaterial_Click(object sender, RoutedEventArgs e)
        {
            MaterialHelper.AddEditTitle = "Добавление материала";
            AddEditMaterialWindow addEdit = new AddEditMaterialWindow();

            addEdit.ShowDialog();

            Context.SaveChanges();
            Filter();
        }