Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            TestForm       form      = new TestForm();
            MessageService service   = new MessageService();
            TestManager    manager   = new TestManager();
            TestPresenter  presenter = new TestPresenter(form, manager, service);

            Application.Run(form);
        }
Ejemplo n.º 2
0
 private void Button3_Click(object sender, EventArgs e)
 {
     if (textBox1.Text.ToString() == "" && textBox2.Text.ToString() == "")
     {
         MessageBox.Show("Введите Фамилию и группу", "Error");
     }
     else
     {
         TestForm testForm = new TestForm();
         testForm.Show();
         this.Hide();
         //groupBox1.Visible = true;
         textBox3.Visible = false;
         label2.Visible   = false;
         textBox1.Visible = false;
         textBox2.Visible = false;
         label3.Visible   = false;
         label4.Visible   = false;
         label5.Visible   = false;
         button3.Visible  = false;
     }
 }