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(); } }
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(); } }