Ejemplo n.º 1
0
        private void BtnLogin_Click(object sender, EventArgs e)
        {
            string Enum  = txbId.Text;
            string pw    = txbPassword.Text;
            string EName = txbOperator.Text;

            Regist regist = DB.employee.Check(Enum, pw, EName);

            if (regist != null)
            {
                this.Hide();
                AGVMain agv = new AGVMain(txbOperator.Text);
                agv.Owner = this;
                agv.ShowDialog();
                this.Close();
            }
            else
            {
                MessageBox.Show("비밀번호를 다시 입력해 주세요.");
            }
        }
Ejemplo n.º 2
0
        private void TxbPassword_KeyDown(object sender, KeyEventArgs e)
        {
            string Enum  = txbId.Text;
            string pw    = txbPassword.Text;
            string EName = txbOperator.Text;

            if (e.KeyCode == Keys.Enter)
            {
                Regist regist = DB.employee.Check(Enum, pw, EName);

                if (regist != null)
                {
                    this.Hide();
                    AGVMain agv = new AGVMain(txbOperator.Text);
                    agv.Owner = this;
                    agv.ShowDialog();
                    this.Close();
                }
                else
                {
                    MessageBox.Show("비밀번호를 다시 입력해 주세요.");
                }
            }
        }