示例#1
0
 private void buttonFinish_Click(object sender, EventArgs e)
 {
     if (ContentChecker.CheckGroupBoxedChecked(tabControl1))
     {
         try
         {
             TestCounter.TotalSum = 0;
             TestCounter.CountCheckBoxOkay();
             TestCounter.CountAge(Convert.ToInt32(numericUpDownAge.Value));
             TestCounter.CountChildren(Convert.ToInt32(numericUpDownChildren.Value));
             TestCounter.CountSalary(Convert.ToInt32(numericUpDownSalary.Value));
             TestCounter.CheckIndex();
             TestCounter.CheckPhoneCode();
             TestResultSetter.InitializeSetter(TestCounter.TotalSum, comboBoxCreditType.SelectedItem.ToString(), scoringProject.Logic.Client.getInstance().ID);
             this.Close();
             ClientPage cl = new ClientPage();
             cl.Visible = true;
         }
         catch (Exception ex)
         {
             MessageBox.Show("Проверьте введенные значения!", "Ошибка при выполнени");
         }
     }
     else
     {
         MessageBox.Show("Проверьте, отметили ли вы все значения", "Ошибки при выполнении");
     }
 }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            ClientPage cl = new ClientPage();

            cl.Visible = true;
        }
示例#3
0
 private void butEnter_Click(object sender, EventArgs e)
 {
     if (Authorize.Enter(textBoxLogin, textBoxPass))
     {
         this.Visible = false;
         ClientPage Cl = new ClientPage(this);
         Cl.Visible    = true;
         butEnter.Text = "Вход";
     }
     else
     {
         butEnter.Text = "Вход не удался";
     }
 }
示例#4
0
 public Test(ClientPage ClientPg)
 {
     InitializeComponent();
     Client = ClientPg;
 }