} //end project button private void EmployeesButton_Click(object sender, EventArgs e) { this.signOutLabel.Visible = true; this.loginBG.Visible = false; this.taskbarMenu.Visible = true; this.profileBG.Visible = false; this.reportsBG.Visible = false; this.employeePageBG.Visible = false; this.projectPageBG.Visible = false; this.searchEmployeesBG.Visible = true; this.searchProjectsBG.Visible = false; this.adminBackPanel.Visible = false; this.resetPassBG.Visible = false; this.changePassBG.Visible = false; this.adminVacationPageBG.Visible = false; this.projectPageRemoveProjectButton.Visible = false; isAdmin = profile.GetAdmin(); if (isAdmin == true) { this.employeeAdminViewVacationsButton.Visible = true; } Clear(); employee.ListEmployees(searchEmployeesGrid, eID); } //end employees button
private void EmployeesButton_Click(object sender, EventArgs e) { this.profileBG.Visible = false; this.scheduleBG.Visible = false; this.employeePageBG.Visible = false; this.projectPageBG.Visible = false; this.searchEmployeesBG.Visible = true; this.searchProjectsBG.Visible = false; this.adminBackPanel.Visible = false; this.Clear(); employee.ListEmployees(searchEmployeesGrid, eID); }