예제 #1
0
파일: EnterProblem.cs 프로젝트: Amarg0/C-
 private void GetProblem_Click(object sender, EventArgs e)
 {
     Hide();
     MessageBox.Show("Отлично, приступим.");
     ProblemHistory problemHistory = new ProblemHistory(ProblemTextBox.Text);
     problemHistory.ShowDialog();
     this.Close();
 }
예제 #2
0
파일: UserEnter.cs 프로젝트: Amarg0/C-
 private void button1_Click(object sender, EventArgs e)
 {
     if (bussiness.Enter(userBase, LoginTextbox.Text, PasswordTextbox.Text))
     {
         MessageBox.Show("С возвращением, " + LoginTextbox.Text+"!");
         Problem[] testProblems = new Problem[5];
         testProblems[0]=new Problem(false,"Главная проблема","Доп. инф. к главной");
         for (int i = 1; i < 5; i++)
         {
             testProblems[i] = new Problem(false,"Проблема #" +i.ToString(),"доп. инф к " + i.ToString());
         }
         string TestUserProblem = "Проблема пользователя " + LoginTextbox.Text;
         ProblemHistory problemHistory = new ProblemHistory(testProblems);
         this.Hide();
         problemHistory.ShowDialog();
         this.Close();
     }
 }