Example #1
0
        private void Button_Click_UpdateTestResultByID(object sender, RoutedEventArgs e)
        {
            GetSerialWindow getSerialWindow = new GetSerialWindow("Update");

            getSerialWindow.ShowDialog();
            if (getSerialWindow.IsClosedByButton)
            {
                try
                {
                    tester = bl.GetTesterByID(tester.Id);
                }
                catch (KeyNotFoundException ex)
                {
                    MessageBox.Show("Internal error at Button_Click_UpdateTestResultByID on main.\n" + ex.Message, "Internal Error", MessageBoxButton.OK, MessageBoxImage.Error);
                }
                ListView_TesterTests.ItemsSource = tester.TestList;
            }
        }
Example #2
0
        private void Button_Click_ViewTestDetails(object sender, RoutedEventArgs e)
        {
            GetSerialWindow getSerialWindow = new GetSerialWindow("View");

            getSerialWindow.ShowDialog();
        }
Example #3
0
        private void Button_Click_AbortTest(object sender, RoutedEventArgs e)
        {
            GetSerialWindow getSerialWindow = new GetSerialWindow("Abort");

            getSerialWindow.ShowDialog();
        }