Ejemplo n.º 1
0
        private void btnReturns_Click(object sender, EventArgs e)
        {
            this.Hide();
            mainMenu mm = new mainMenu();

            mm.ShowDialog();
            this.Dispose();
        }
Ejemplo n.º 2
0
 private void btnStaffSign_Click(object sender, EventArgs e)
 {
     GlobalVariables.username = tbxUsername_Login.Text;
     try
     {
         this.getLoginDetailsTableAdapter.CheckLoginDetails(this.getLoginDS.GetLoginDetails, tbxUsername_Login.Text, tbxPassword_Login.Text);
         if (getLoginDS.GetLoginDetails.Rows[0][0].ToString().ToUpper() == tbxUsername_Login.Text.ToUpper() && getLoginDS.GetLoginDetails.Rows[0][1].ToString() == tbxPassword_Login.Text)
         {
             GlobalVariables.StaffID = int.Parse(getLoginDS.GetLoginDetails.Rows[0][2].ToString());
             mainMenu sc = new mainMenu();
             this.Hide();
             sc.ShowDialog();
             this.Close();
         }
         else
         {
             MessageBox.Show("Incorrect Password");
         }
     }
     catch (System.Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }