Esempio n. 1
0
        private void retu_Click(object sender, EventArgs e)
        {
            Manger lo = new Manger();

            lo.Show();
            this.Hide();
        }
Esempio n. 2
0
 private void log_Click(object sender, EventArgs e)
 {
     if (user_txt.Text != "" && pass_txt.Text != "")
     {
         DB     db  = new DB(user_txt.Text, pass_txt.Text);
         bool[] yes = db.LogIn();
         if (yes[0] == true)
         {
             if (yes[1])
             {
                 Manger ma = new Manger();
                 ma.Show();
                 this.Hide();
                 return;
             }
             Starting st = new Starting();
             st.Show();
             this.Hide();
         }
         else
         {
             MessageBox.Show("Wrong username or password, Try again", "Failed");
         }
     }
     else
     {
         if (user_txt.Text == "")
         {
             MessageBox.Show("Missing username", "Failed");
         }
         else
         {
             MessageBox.Show("Missing password", "Failed");
         }
     }
     Cursor = Cursors.Default;
 }