Example #1
0
 private void login_button_Click(object sender, EventArgs e)
 {
     if (username.Text == "" || password.Text == "")
     {
         MessageBox.Show("Fill in the details", "Error");
     }
     else
     {
         if (login_checker() == true)
         {
             Main_control obj = new Main_control();
             obj.Show();
             pictureBox1.Visible = false;
             // bunifuTransition1.ShowSync(pictureBox1);
         }
     }
 }
Example #2
0
 private void login_button_Click(object sender, EventArgs e)
 {
     if (username.Text == "" || password.Text == "")
     {
         MessageBox.Show("Fill in the details", "Error");
     }
     else
     {
         if (login_checker() == true)
         {
             Main_control obj = new Main_control(details, this);
             main_control = obj;
             main_control.Show();
             startupform.Hide();
         }
     }
 }