private void bunifuFlatButton6_Click(object sender, EventArgs e) { AdminDashboard m = new AdminDashboard(); m.Show(); this.Hide(); }
private void homeTab_Click(object sender, EventArgs e) { AdminDashboard m = new AdminDashboard(); m.Show(); this.Hide(); }
private void loginBtn_Click(object sender, EventArgs e) { AdminDashboard admindash = new AdminDashboard(); admindash.Show(); this.Hide(); }
private void HomeTab12_clicked(object sender, EventArgs e) { AdminDashboard m = new AdminDashboard(); m.Show(); this.Hide(); }
private void loginBtn_Click(object sender, EventArgs e) { if (this.LoginPassword.Text != "" && this.LoginId.Text != "") { EmployeeR user = new EmployeeR(); user.EmployeeId = LoginId.Text.Trim(); user.EPassword = LoginPassword.Text; EmployeeRepository empRepo = new EmployeeRepository(); if (empRepo.UserLoginValidation(user)) { if (LoginId.Text.Substring(0, 1) == "A") { AdminDashboard admindash = new AdminDashboard(); admindash.Show(); this.Hide(); } else if (LoginId.Text.Substring(0, 1) == "M") { Marketing m = new Marketing(); m.HomeTab.Hide(); m.Show(); this.Hide(); } else if (LoginId.Text.Substring(0, 1) == "S") { Sales m = new Sales(); m.homeTab.Hide(); m.Show(); this.Hide(); } else if (LoginId.Text.Substring(0, 1) == "H") { HumanResource m = new HumanResource(); m.Show(); m.homeTab.Hide(); this.Hide(); } else if (LoginId.Text.Substring(0, 1) == "B") { Accounting m = new Accounting(); m.homeTab.Hide(); m.Show(); this.Hide(); } else if (LoginId.Text.Substring(0, 1) == "F") { Finance m = new Finance(); m.homeTab.Hide(); m.Show(); this.Hide(); } else if (LoginId.Text.Substring(0, 1) == "I") { IT m = new IT(); m.HomeTab12.Hide(); m.Show(); this.Hide(); } else { } } else { MessageBox.Show("Invalid Id or Password", "Login Failed"); } } else { MessageBox.Show("Insert ID or Password", "Login Failed"); } /*AdminDashboard admin = new AdminDashboard(); * admin.Show(); * this.Hide();*/ }