Exemple #1
0
        private void OpenForm()
        {
            TestLoader tlk = new TestLoader(_fe);
            tlk.SetHumanID();
            _humanid = tlk.HumanID;
            if (_humanid!= 0)
            {
                _recogform = new RForm((int)_test, _humanid, _ge, _fe);
                _recogform.WindowState = FormWindowState.Maximized;
                _recogform.btn_addtobase.Click += new EventHandler(btn_addtobase_Click);
                _recogform.Show();

            }
        }
Exemple #2
0
        private void btn_begin_auto_Click(object sender, EventArgs e)
        {
            if (lst_pooll.Items.Count != 0)
            {
                TestLoader tlk = new TestLoader(_fe);
                tlk.TestsPoolDone += new EventHandler(tlk_TestsPoolDone);
                tlk.SetHumanID();
                foreach (ListViewItem item in lst_pooll.Items)
                {
                    ITest tst = TestFactory.CreateTest((EnumPTests)int.Parse(item.SubItems[0].Text), _ge, _fe, false);
                    tlk.Pool.Add(tst);
                }

                tlk.StartTesting();
                this.Close();
            }
        }
Exemple #3
0
        private void btn_begin_auto_Click(object sender, EventArgs e)
        {
            if (lst_pooll.Items.Count != 0)
            {
                TestLoader tlk = new TestLoader(_fe);
                tlk.TestsPoolDone += new EventHandler(tlk_TestsPoolDone);
                tlk.SetHumanID();
                foreach (ListViewItem item in lst_pooll.Items)
                {
                    ITest tst = TestFactory.CreateTest((EnumPTests)int.Parse(item.SubItems[0].Text), _ge, _fe, false);
                    tlk.Pool.Add(tst);
                }

                tlk.StartTesting();
                this.Close();
            }
        }
Exemple #4
0
 private void cmd_begin_manual_Click(object sender, EventArgs e)
 {
     if (lst_manual.SelectedItems.Count != 0)
     {
         this.Close();
         TestLoader tlk = new TestLoader(_fe);
         tlk.SetHumanID();
         if (tlk.HumanID != 0)
         {
             RForm rf = new RForm(int.Parse(lst_manual.SelectedItems[0].SubItems[0].Text), tlk.HumanID, _ge, _fe);
             rf.WindowState = FormWindowState.Maximized;
             rf.ShowDialog();
             this.Close();
         }
     }
     else
     {
         MessageBox.Show("Необходимо выбрать тест");
     }
 }
Exemple #5
0
 private void cmd_begin_manual_Click(object sender, EventArgs e)
 {
     if (lst_manual.SelectedItems.Count != 0)
     {
         this.Close();
         TestLoader tlk = new TestLoader(_fe);
         tlk.SetHumanID();
         if (tlk.HumanID != 0)
         {
             RForm rf = new RForm(int.Parse(lst_manual.SelectedItems[0].SubItems[0].Text), tlk.HumanID, _ge, _fe);
             rf.WindowState = FormWindowState.Maximized;
             rf.ShowDialog();
             this.Close();
         }
     }
     else { MessageBox.Show("Необходимо выбрать тест"); }
 }
Exemple #6
0
 private void btn_sten_Click(object sender, EventArgs e)
 {
     if (lst_sten.SelectedItems.Count != 0)
     {
         if (int.Parse(lst_sten.SelectedItems[0].SubItems[0].Text) != (int)EnumPTests.Modul2)
         {
             this.Close();
             TestLoader tlk = new TestLoader(_fe);
             tlk.SetHumanID();
             if (tlk.HumanID != 0)
             {
                 StenForm rf = new StenForm(int.Parse(lst_sten.SelectedItems[0].SubItems[0].Text), tlk.HumanID, _ge, _fe);
                 rf.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;
                 rf.ShowDialog();
                 this.Close();
             }
         }
         else { MessageBox.Show("Для теста модуль 2 ввод стенов вручную невозможен. Воспользуйтесь сканированием бланка"); }
     }
     else { MessageBox.Show("Необходимо выбрать тест"); }
 }