コード例 #1
0
        // this method shows and hides panels
        private void ShowPanel(string panelName)
        {
            if (panelName == "dashboard")
            {
                dashboardToolStripMenuItem.BackColor          = SystemColors.ActiveCaption;
                incidentManagementToolStripMenuItem.BackColor = SystemColors.GradientInactiveCaption;
                userManagementToolStripMenuItem.BackColor     = SystemColors.GradientInactiveCaption;

                btn_open_ticket.Enabled = false;
                ClearTicketInfo();
                panel_ticketOverview.Hide();
                create_ticket_Panel.Hide();
                panel_incident_management.Hide();
                Dashboard_panel.Show();
            }
            else if (panelName == "incident_menu")
            {
                incidentManagementToolStripMenuItem.BackColor = SystemColors.ActiveCaption;
                dashboardToolStripMenuItem.BackColor          = SystemColors.GradientInactiveCaption;
                userManagementToolStripMenuItem.BackColor     = SystemColors.GradientInactiveCaption;

                btn_open_ticket.Enabled = false;
                ClearTicketInfo();
                panel_ticketOverview.Hide();
                Dashboard_panel.Hide();
                create_ticket_Panel.Hide();
                panel_incident_management.Show();
                panel_user_management.Hide();
                PopulateDashboardIncidentList();
            }
        }
コード例 #2
0
ファイル: Dashboard.cs プロジェクト: lorenzoKrol/NoDeskV19
 private void dashboardToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //if dasboard menu item is clicked display dashboard panel and hide the rest
     Dashboard_panel.Show();
     panel_dashboardViewTicketList.Hide();
 }