private void LoginButton_Click(object sender, EventArgs e) { Employee user = new Employee(); user.EmployeeId = this.EmpLogintextBox1.Text; user.EmployeePassword = this.EmpLoginPassbox.Text; string uid = this.EmpLogintextBox1.Text; string pass = this.EmpLogintextBox1.Text; // Home h = new Home(uid, pass); // h.Show(); // this.Hide(); AeMployeeRepisotary empRepo = new AeMployeeRepisotary(); if (empRepo.UserLoginVerification(user)) { Enter00Employee00000 h = new Enter00Employee00000(uid, pass); h.Show(); this.Hide(); } else { MessageBox.Show("Invalid ID or Password", "Login Failed"); } }
private void backBtn_Click(object sender, EventArgs e) { String uid = null; String pass = null; Enter00Employee00000 h = new Enter00Employee00000(uid, pass); h.Show(); this.Hide(); }