コード例 #1
0
ファイル: Delete.cs プロジェクト: shehabnagy1998/Bank
        private void retu_Click(object sender, EventArgs e)
        {
            Starting st = new Starting();

            st.Show();
            this.Hide();
        }
コード例 #2
0
ファイル: LOGIN.cs プロジェクト: shehabnagy1998/Bank
 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;
 }