Пример #1
0
        //------------------------
        // ITEMS NAVBAR METHODS  |
        //------------------------
        private void btnItems_Click(object sender, EventArgs e)
        {
            Item_MainScreen itemsMain = new Item_MainScreen();

            this.Hide();  //Added to actually close the Main Screen instead of it being open in the background
            itemsMain.ShowDialog();
            this.Close(); //Closes the Customer Main Screen
        }
Пример #2
0
        //------------------------
        // ITEMS NAVBAR METHODS  |
        //------------------------
        private void btnItems_Click(object sender, EventArgs e)
        {
            Item_MainScreen itemsMain = new Item_MainScreen();

            this.Hide();
            itemsMain.ShowDialog();
            this.Close();
        }
Пример #3
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     //JUST TO TRANSITION TO THE MAIN SCREEN
     //if ((txtUsername.Text == "wennie") && (txtPassword.Text == "1234"))
     if ((txtUsername.Text == "Username") && (txtPassword.Text == "Password")) //Temporarily changed it, kasi kakatamad to input wennie and 1234 all the time
     {
         Item_MainScreen ims = new Item_MainScreen();
         this.Hide();  //Actually closes the Log-in Form instead of leaving it open in the background.
         ims.ShowDialog();
         this.Close(); //Close the Log-in Screen
     }
     else
     {
         MessageBox.Show("The username or password you entered is incorrect.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     //}
 }