Пример #1
0
        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();
        }
Пример #2
0
        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);
        }
Пример #3
0
        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();
            }
        }
Пример #4
0
        private void MenuItem_Click_UpdateTester(object sender, RoutedEventArgs e)
        {
            TesterDetailsWindow testerDetailsWindow = new TesterDetailsWindow(ListBox_TestersList.SelectedItem as Tester, "Update");

            testerDetailsWindow.ShowDialog();
        }
Пример #5
0
        private void Button_Click_ViewTesterDetails(object sender, RoutedEventArgs e)
        {
            TesterDetailsWindow testerDetailsWindow = new TesterDetailsWindow(tester, "View");

            testerDetailsWindow.ShowDialog();
        }