private void BtnRegist_Click(object sender, EventArgs e) // 사원 등록 { Regist regist = new Regist(); ERegist eregist = new ERegist(regist); eregist.ShowDialog(); }
private void BtnDone_Click(object sender, EventArgs e) { Regist regist = new Regist(); if (regist.EmployeeNum == null) { regist.OperatorName = txbOperator.Text; regist.EmployeeNum = txbId.Text; regist.Password = txbPassword.Text; DB.employee.Insert(regist); Close(); } }
private void TxbPassword_KeyDown(object sender, KeyEventArgs e) { Regist regist = new Regist(); if (e.KeyCode == Keys.Enter) { if (regist.EmployeeNum == null) { regist.OperatorName = txbOperator.Text; regist.EmployeeNum = txbId.Text; regist.Password = txbPassword.Text; DB.employee.Insert(regist); Close(); } } }
private void BtnDone_Click(object sender, EventArgs e) { string ENum = txbId.Text; Regist regist = new Regist(); if (DB.employee.CheckENum(ENum)) { FormHelper.ChangeEnum(); } else if (regist != null) { regist.OperatorName = txbOperator.Text; regist.EmployeeNum = txbId.Text; regist.Password = txbPassword.Text; DB.employee.Insert(regist); Close(); } }
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("비밀번호를 다시 입력해 주세요."); } }
private void TxbPassword_KeyDown(object sender, KeyEventArgs e) { string ENum = txbId.Text; if (e.KeyCode == Keys.Enter) { Regist regist = new Regist(); if (DB.employee.CheckENum(ENum)) { FormHelper.ChangeEnum(); } else if (regist != null) { regist.OperatorName = txbOperator.Text; regist.EmployeeNum = txbId.Text; regist.Password = txbPassword.Text; DB.employee.Insert(regist); Close(); } } }
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("비밀번호를 다시 입력해 주세요."); } } }
public ERegist(Regist regist) { InitializeComponent(); Icon = Resources.AGV_Navigation_icon_drop_shadow1; // 프로그램 Icon 설정 }