예제 #1
0
        private void metroButton5_Click(object sender, EventArgs e)
        {
            Adminmain am = new Adminmain();

            am.Show();
            this.Hide();
        }
예제 #2
0
 private void metroButton1_Click(object sender, EventArgs e)
 {
     if (metroTextBox1.Text == "Admin" && metroTextBox2.Text == "123")
     {
         am.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Username and password is invalid");
     }
 }