private void MenuItem_Click_UpdateTesterDetails(object sender, RoutedEventArgs e)
        {
            if (TestersList.SelectedItem == null)
            {
                return;
            }
            Tester tester;

            tester = MainWindow.bl.GetTesterByID((TestersList.SelectedItem as Tester).Id);
            TesterDetailsWindow testerDetailsWindow = new TesterDetailsWindow(tester, "Update");

            testerDetailsWindow.ShowDialog();
            ComboBox_GroupOptions.SelectedIndex = (int)TesterGroupCategorys.הכל;
            ComboBox_GroupOptions_SelectionChanged(null, null);
            SearchFilterChanged(null, null);
        }
Esempio n. 2
0
        private void Button_Click_UpdateTester(object sender, RoutedEventArgs e)
        {
            GetIDWindow getIDWindow = new GetIDWindow();

            getIDWindow.ShowDialog();
            if (getIDWindow.IsClosedByButton)
            {
                Tester tester;
                try
                {
                    tester = bl.GetTesterByID(getIDWindow.TxtBx_ID.Text);
                }
                catch (KeyNotFoundException ex)
                {
                    MessageBox.Show(ex.Message, "נתון לא קיים", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.None,
                                    MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign);
                    return;
                }
                TesterDetailsWindow testerDetailsWindow = new TesterDetailsWindow(tester, "Update");
                testerDetailsWindow.ShowDialog();
            }
        }
Esempio n. 3
0
        private void Button_Click_ViewTesterDetails(object sender, RoutedEventArgs e)
        {
            TesterDetailsWindow testerDetailsWindow = new TesterDetailsWindow(tester, "View");

            testerDetailsWindow.ShowDialog();
        }