Example #1
0
        private void BackBtn_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            ChooseDepOrEmpForm choose = new ChooseDepOrEmpForm();

            choose.Visible = true;
        }
Example #2
0
 private void LogInBtn_Click(object sender, EventArgs e)
 {
     if (UsernameBox.Text == "georgiev" && PasswordBox.Text == "2001")
     {
         this.Visible = false;
         ChooseDepOrEmpForm chooseOne = new ChooseDepOrEmpForm();
         chooseOne.Show();
     }
     else
     {
         MessageBox.Show("You have entered wrong username or password", "Incorrect data", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }