// 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(); } }
//shows list of all incidents private void Show_list_btn_Click(object sender, EventArgs e) { Dashboard_panel.Hide(); panel_dashboardViewTicketList.Show(); PopulateDashboardIncidentList(); PopulateDashboardIncidentList_Solved(); }
// 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(); }
//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(); }
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(); }
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; } }
private void Go_create_incident_BTN_Click(object sender, EventArgs e) { Dashboard_panel.Hide(); panel_incident_management.Hide(); create_ticket_Panel.Show(); }
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(); }