예제 #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            POS1 pos1 = new POS1();

            pos1.Show();
        }
예제 #2
0
 public void Logbtn_Click(object sender, EventArgs e)
 {
     getData();
     if (username1 != null && pass1 != null)
     {
         MessageBox.Show("Logged in successfully");
         POS1 pos1 = new POS1();
         this.Hide();
         pos1.Show();
     }
     else
     {
         MessageBox.Show("Username and password cannot be recognized", "Log in failed");
     }
 }