private void MenuItem_Click_UpdateTesterDetails(object sender, RoutedEventArgs e) { Tester tester; tester = MainWindow.bl.GetTesterByID((TestersList.SelectedItem as Tester).Id); TesterDetailsWindow testerDetailsWindow = new TesterDetailsWindow(tester, "Update"); testerDetailsWindow.ShowDialog(); }
private void MenuItem_Click_UpdateTesterDetails(object sender, RoutedEventArgs e) { Tester tester; tester = MainWindow.bl.GetTesterByID((TestersList.SelectedItem as Tester).Id); TesterDetailsWindow testerDetailsWindow = new TesterDetailsWindow(tester, "Update"); testerDetailsWindow.ShowDialog(); mainList = MainWindow.bl.GetTestersList(); groupedByCity = MainWindow.bl.GetTestersGroupedByCity(); groupedBySeniority = MainWindow.bl.GetTestersGropedBySeniority(); groupedByMaxDistance = MainWindow.bl.GetTestersGropedByMaxDistance(); TestersList.ItemsSource = mainList; SearchFilterChanged(this, null); }
private void Button_Click_UpdateTester(object sender, RoutedEventArgs e) { GetIDWindow getIDWindow = new GetIDWindow(); getIDWindow.ShowDialog(); if (getIDWindow.IsClosedByButton) { Tester tester; try { tester = MainWindow.bl.GetTesterByID(getIDWindow.TxtBx_ID.Text); } catch (KeyNotFoundException ex) { MessageBox.Show(ex.Message, "ID not Exist", MessageBoxButton.OK, MessageBoxImage.Error); return; } TesterDetailsWindow testerDetailsWindow = new TesterDetailsWindow(tester, "Update"); testerDetailsWindow.ShowDialog(); } }
private void MenuItem_Click_UpdateTester(object sender, RoutedEventArgs e) { TesterDetailsWindow testerDetailsWindow = new TesterDetailsWindow(ListBox_TestersList.SelectedItem as Tester, "Update"); testerDetailsWindow.ShowDialog(); }
private void Button_Click_ViewTesterDetails(object sender, RoutedEventArgs e) { TesterDetailsWindow testerDetailsWindow = new TesterDetailsWindow(tester, "View"); testerDetailsWindow.ShowDialog(); }