Пример #1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            frmManagement objfrmManagement = new frmManagement();

            this.Hide();
            objfrmManagement.Show();
        }
Пример #2
0
        private void btnLogin_Click_1(object sender, EventArgs e)
        {
            String Pass = txtPassword.Text;

            if (Pass == "Manager123")
            {
                MessageBox.Show("Login Successfully", "Login Success");
                frmManagement objfrmManagement = new frmManagement();
                this.Hide();
                objfrmManagement.Show();
            }
            else
            {
                MessageBox.Show("Your Password is incorrect", "Invalid Password");
            }
        }