private void HideAllPanels() { PnlDashBoard.Hide(); pnlAnalysis.Hide(); pnlUserManagment.Hide(); pnlAddUser.Hide(); pnlIncidentManagement.Hide(); pnlCreateTicket.Hide(); pnlFaq.Hide(); pnlAddFaq.Hide(); pnlMonitoring.Hide(); }
private void ShowHidePanel(Button btn) { HideAllPanels(); if (btn.Name == "btnDashboard" || btn.Name == "btnAnalysisBack") { InitDashboard(); PnlDashBoard.Show(); } else if (btn.Name == "btnAnalysis") { InitAnalysis(); pnlAnalysis.Show(); } else if (btn.Name == "btnUserManager") { pnlUserManagment.Show(); } else if (btn.Name == "btnDashboard") { PnlDashBoard.Show(); } else if (btn.Name == "btnAddUser") { pnlAddUser.Show(); } else if (btn.Name == "btnIncidents" || btn.Name == "btnSubmitTicket" || btn.Name == "btnUpdateTicket" || btn.Name == "btnCancelTicket") { listViewIncidents.Items.Clear(); // clear listview incidents DisplayTicketsOverview(); // display ticket list pnlIncidentManagement.Show(); } else if (btn.Name == "btnFaq" || btn.Name == "btnSubmitFaq" || btn.Name == "btnCancelFaq") { pnlFaq.Show(); listViewFaq.Items.Clear(); DisplayFaqOverview(); } else if (btn.Name == "btnAddFaq") { pnlAddFaq.Show(); } else if (btn.Name == "btnMonitoringSystem") { pnlMonitoring.Show(); } }