Ejemplo n.º 1
0
        private void logIn_Click(object sender, EventArgs e)
        {
            Account_BO account_BO = new Account_BO();
            if (userName.Text == "" || password.Text == "")
            {
                MessageBox.Show("Wrong!!! Enter the information fully");
            }
            else
            {
                if (account_BO.security_Checker(userName.Text, password.Text))
                {

                    Home_Admin home_Admin = new Home_Admin();
                    home_Admin.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("Wrong UserName or Password");
                    userName.Clear();
                    password.Clear();
                }
            }
        }