}//admin signin window

        private void testerClick(object sender, RoutedEventArgs e)
        {
            int tid;

            if (int.TryParse(comboBoxTesterID.SelectedItem.ToString(), out tid))//check the user entered a number
            {
                Tester       tester  = bl.getAllTesters().Where(x => x.id == tid).FirstOrDefault();
                testerwindow testerw = new testerwindow(tester);
                testerw.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("must choose tester", "ERROR!");
            }
        }//tester signin window
Beispiel #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            int tid;

            if (int.TryParse(testerId.Text, out tid))
            {
                Tester tester = bl.getAllTesters().Where(x => x.id == tid).First();
                if (tester != null)
                {
                    testerwindow testerw = new testerwindow(tester);
                    testerw.Show();
                    this.Hide();
                }
            }
            else
            {
                MessageBox.Show("must enter number in tester id!", "ERROR!");
            }
        }
Beispiel #3
0
        }//admin signin window

        private void testerClick(object sender, RoutedEventArgs e)
        {
            int tid;

            if (int.TryParse(testerId.Text, out tid))//check the user entered a number
            {
                Tester tester = bl.getAllTesters().Where(x => x.id == tid).FirstOrDefault();
                if (tester != null)
                {
                    testerwindow testerw = new testerwindow(tester);
                    testerw.Show();
                    this.Close();
                }//check that the tester exists
                else
                {
                    MessageBox.Show("tester does not exist!", "ERROR!");
                }
            }
            else
            {
                MessageBox.Show("must enter number in tester id!", "ERROR!");
            }
        }//tester signin window