Exemple #1
0
        private void BtnOk_Click(object sender, EventArgs e)
        {
            int checkResult;

            checkResult = List.Where(g => g.사원코드 == txbEmployeeCode.Text && g.암호 == txbPassWord.Text).Count();

            if (checkResult == 1)
            {
                _loginForm.Hide();
            }
            else
            {
                MessageBox.Show("PassWord를 확인하세요");
            }
        }
        private void BtnOk_Click(object sender, EventArgs e)
        {
            int checkResult;

            DB.사원등록.Check(txbEmployeeCode.Text, txbPassWord.Text, out checkResult);

            if (checkResult == 1)
            {
                _loginForm.Hide();
            }
            else
            {
                MessageBox.Show("PassWord를 확인하세요");
            }
        }