コード例 #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
 //shows list of all incidents
 private void Show_list_btn_Click(object sender, EventArgs e)
 {
     Dashboard_panel.Hide();
     panel_dashboardViewTicketList.Show();
     PopulateDashboardIncidentList();
     PopulateDashboardIncidentList_Solved();
 }
コード例 #3
0
        // opens ticket info page
        private void Btn_open_ticket_Click_1(object sender, EventArgs e)
        {
            panel_incident_management.Hide();
            Dashboard_panel.Hide();
            panel_ticketOverview.Show();

            listView_incidents.Refresh();
        }
コード例 #4
0
        //shows list of all incidents
        private void Show_list_btn_Click(object sender, EventArgs e)
        {
            Dashboard_panel.Hide();
            create_ticket_Panel.Hide();
            panel_incident_management.Show();

            PopulateDashboardIncidentList();
            PopulateDashboardIncidentList_Solved();
        }
コード例 #5
0
ファイル: Dashboard.cs プロジェクト: lorenzoKrol/NoDeskV19
        private void incidentManagementToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //if incident management menu item is clicked display panel and hide the rest
            panel_dashboardViewTicketList.Show();
            Dashboard_panel.Hide();

            //populate lists if panel gets selected
            PopulateDashboardIncidentList();
            PopulateDashboardIncidentList_Solved();
        }
コード例 #6
0
 private void userManagementToolStripMenuItem_Click(object sender, EventArgs e)
 {
     user_service = new User_Service();
     incidentManagementToolStripMenuItem.BackColor = SystemColors.GradientInactiveCaption;
     dashboardToolStripMenuItem.BackColor          = SystemColors.GradientInactiveCaption;
     userManagementToolStripMenuItem.BackColor     = SystemColors.ActiveCaption;
     panel_user_management.Show();
     panel_incident_management.Hide();
     panel_ticketOverview.Hide();
     Dashboard_panel.Hide();
     create_ticket_Panel.Hide();
     FillUsers();
     panel_add_edit_user.Hide();
     //check admin status
     if (loggedin_user.Status != "Admin")
     {
         btn_create_user.Hide();
         btn_create_user.Enabled = false;
         btn_delete_user.Hide();
         btn_delete_user.Enabled = false;
     }
 }
コード例 #7
0
 private void Go_create_incident_BTN_Click(object sender, EventArgs e)
 {
     Dashboard_panel.Hide();
     panel_incident_management.Hide();
     create_ticket_Panel.Show();
 }
コード例 #8
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();
 }