Exemple #1
0
        private void AdminLabel_Click(object sender, EventArgs e)
        {
            isAdmin = profile.getAdmin(eID);
            if (isAdmin == true)
            {
                this.searchProjectsBG.Visible  = false;
                this.profileBG.Visible         = false;
                this.scheduleBG.Visible        = false;
                this.employeePageBG.Visible    = false;
                this.projectPageBG.Visible     = false;
                this.searchEmployeesBG.Visible = false;
                this.adminBackPanel.Visible    = true;

                admin.DisplayEmployees(adminEmployeeGrid);
            }
        }
Exemple #2
0
        } //end reports button

        private void AdminLabel_Click(object sender, EventArgs e)
        {
            isAdmin = profile.GetAdmin();
            if (isAdmin == true)
            {
                this.signOutLabel.Visible                   = true;
                this.loginBG.Visible                        = false;
                this.taskbarMenu.Visible                    = true;
                this.searchProjectsBG.Visible               = false;
                this.profileBG.Visible                      = false;
                this.reportsBG.Visible                      = false;
                this.employeePageBG.Visible                 = false;
                this.projectPageBG.Visible                  = false;
                this.searchEmployeesBG.Visible              = false;
                this.adminBackPanel.Visible                 = true;
                this.resetPassBG.Visible                    = false;
                this.changePassBG.Visible                   = false;
                this.adminVacationPageBG.Visible            = false;
                this.projectPageRemoveProjectButton.Visible = false;

                admin.DisplayEmployees(adminEmployeeGrid);
            }
        } //end admin button