Пример #1
0
        private void registerLabel_Click(object sender, EventArgs e)
        {
            pere.Value = "1";
            this.Hide();
            RegisterForm registerForm = new RegisterForm();

            registerForm.Show();
        }
Пример #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (flagTable == 1)
     {
         this.Hide();
         RegisterForm registerForm = new RegisterForm();
         registerForm.Show();
     }
     else
     if (flagTable == 2)
     {
         this.Hide();
         NewTable2 newTable2 = new NewTable2();
         newTable2.Show();
     }
     else
     if (flagTable == 3)
     {
         this.Hide();
         NewTable3 newTable3 = new NewTable3();
         newTable3.Show();
     }
     else
     if (flagTable == 4)
     {
         this.Hide();
         NewTable4 newTable4 = new NewTable4();
         newTable4.Show();
     }
     else
     if (flagTable == 5)
     {
         this.Hide();
         NewTable5 newTable5 = new NewTable5();
         newTable5.Show();
     }
     else
     if (flagTable == 6)
     {
         this.Hide();
         NewTable6 newTable = new NewTable6();
         newTable.Show();
     }
     else
     if (flagTable == 7)
     {
         this.Hide();
         NewTable7 newTable = new NewTable7();
         newTable.Show();
     }
     else
     if (flagTable == 8)
     {
         this.Hide();
         NewTable8 newTable = new NewTable8();
         newTable.Show();
     }
     else
     if (flagTable == 9)
     {
         this.Hide();
         NewTable9 newTable = new NewTable9();
         newTable.Show();
     }
     else
     if (flagTable == 0)
     {
         MessageBox.Show("Выберите таблицу");
     }
 }