Exemple #1
0
        private void Edit_click(object sender, RoutedEventArgs e)
        {
            Add_and_Edit add = new Add_and_Edit(students[LV.SelectedIndex], false, connection, factory);

            if (add.ShowDialog() == true)
            {
                Update();
            }
        }
Exemple #2
0
        private void Add_click(object sender, RoutedEventArgs e)
        {
            Add_and_Edit add = new Add_and_Edit(new Student(), true, connection, factory);

            if (add.ShowDialog() == true)
            {
                Update();
            }
        }