コード例 #1
0
ファイル: MainForm.cs プロジェクト: BradAricW/SeniorProject
        } //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
コード例 #2
0
        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);
        }