Exemple #1
0
        private void btLogin_Click(object sender, EventArgs e)
        {
            if (!ValidateLogin())
            {
                return;
            }

            using (var objDb = new clsDBUltity())
            {
                if (objDb.LoginCheck(txtUser.Text, txtPass.Text))
                {
                    ExitForm(true);
                }
                else
                {
                    ShowMsg(MessageBoxIcon.Error, MSG_ERR_LOGIN);
                }
            }
        }