} //end home button private void ProjectsButton_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 = false; this.searchProjectsBG.Visible = true; this.adminBackPanel.Visible = false; this.resetPassBG.Visible = false; this.changePassBG.Visible = false; this.adminVacationPageBG.Visible = false; this.employeeAdminViewVacationsButton.Visible = false; isAdmin = profile.GetAdmin(); if (isAdmin == true) { this.projectPageRemoveProjectButton.Visible = true; } Clear(); edit.ListProjects(projectsGrid); } //end project button
private void ProjectsButton_Click(object sender, EventArgs e) { this.profileBG.Visible = false; this.scheduleBG.Visible = false; this.employeePageBG.Visible = false; this.projectPageBG.Visible = false; this.searchEmployeesBG.Visible = false; this.searchProjectsBG.Visible = true; this.adminBackPanel.Visible = false; this.Clear(); //dbconn = new DBConn(); //conn = dbconn.Dbsetup(); //edit.Setup(conn); edit.ListProjects(projectsGrid, eID); }