private void pOSToolStripMenuItem_Click(object sender, EventArgs e)
        {
            WAREHOUSE a = new WAREHOUSE();

            a.Show();
            this.Hide();
        }
Exemplo n.º 2
0
 private void LOGIN_PARAMETER(string username, string password, string logintype)
 {
     if (logintype.Equals("Cashier"))
     {
         if (username.Equals("cashier") && password.Equals("cashier"))
         {
             POS a = new POS();
             a.Show();
             this.Hide();
         }
         else
         {
             MessageBox.Show("Login failed, please input the correct username and password", "Info",
                             MessageBoxButtons.OK,
                             MessageBoxIcon.None);
         }
     }
     if (logintype.Equals("Warehouse"))
     {
         if (username.Equals("warehouse") && password.Equals("warehouse"))
         {
             WAREHOUSE a = new WAREHOUSE();
             a.Show();
             this.Hide();
         }
         else
         {
             MessageBox.Show("Login failed, please input the correct username and password", "Info",
                             MessageBoxButtons.OK,
                             MessageBoxIcon.None);
         }
     }
 }