private Control getGroupDefaultView(Utility.ExplorerBarGroup groupIn) { Control ret = null; switch (groupIn) { case Utility.ExplorerBarGroup.SecuritySummary: ret = m_View_Main_SecuritySummary; break; case Utility.ExplorerBarGroup.ExplorePermissions: ret = m_View_Main_ExplorePermissions; break; case Utility.ExplorerBarGroup.Reports: ret = m_View_Main_Reports; break; case Utility.ExplorerBarGroup.ManageSQLsecure: ret = m_View_Main_ManageSQLsecure; break; default: Debug.Assert(false, "Invalid group"); break; } return(ret); }
private Utility.MenuConfiguration getGroupMenuConfiguration(Utility.ExplorerBarGroup groupIn) { Utility.MenuConfiguration ret = null; switch (groupIn) { case Utility.ExplorerBarGroup.SecuritySummary: ret = m_SecuritySummaryMenuConfiguration; break; case Utility.ExplorerBarGroup.ExplorePermissions: ret = m_ExplorePermissionsMenuConfiguration; break; case Utility.ExplorerBarGroup.Reports: ret = m_ReportsMenuConfiguration; break; case Utility.ExplorerBarGroup.ManageSQLsecure: ret = m_ManageSQLsecureMenuConfiguration; break; default: Debug.Assert(false, "Invalid group"); break; } return(ret); }
private Stack <Control> getGroupStack(Utility.ExplorerBarGroup groupIn) { Stack <Control> ret = null; switch (groupIn) { case Utility.ExplorerBarGroup.SecuritySummary: ret = m_SecuritySummaryViewStack; break; case Utility.ExplorerBarGroup.ExplorePermissions: ret = m_ExplorePermissionsViewStack; break; case Utility.ExplorerBarGroup.Reports: ret = m_ReportsViewStack; break; case Utility.ExplorerBarGroup.ManageSQLsecure: ret = m_ManageSQLsecureViewStack; break; default: Debug.Assert(false, "Invalid group"); break; } return(ret); }
public void SetRootView(Utility.ExplorerBarGroup group, Utility.NodeTag nodeTagIn) { Stack <Control> stack = null; if (group == Utility.ExplorerBarGroup.SecuritySummary) { stack = m_SecuritySummaryViewStack; } else if (group == Utility.ExplorerBarGroup.ExplorePermissions) { stack = m_ExplorePermissionsViewStack; } else if (group == Utility.ExplorerBarGroup.Reports) { stack = m_ReportsViewStack; } else if (group == Utility.ExplorerBarGroup.ManageSQLsecure) { stack = m_ManageSQLsecureViewStack; } else { Debug.Assert(false, "Invalid Group Passed to SetRootView"); } SetRootView(stack, nodeTagIn); }
public void SwitchGroup(Utility.ExplorerBarGroup groupIn) { if (m_CurrentGroup != groupIn) // If the group is not changing don't do anything. { m_ExplorerBar.ActiveGroup = m_ExplorerBar.Groups[(int)groupIn]; m_ExplorerBar.PerformAction( Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarAction.ClickActiveGroup); } }
public void SetCurrentGroup(Utility.ExplorerBarGroup groupIn) { if (m_CurrentGroup != groupIn) // If the group is not changing don't do anything. { // Set the current group and menu configuration. m_CurrentGroup = groupIn; m_CurrentViewStack = getGroupStack(m_CurrentGroup); m_CurrentMenuConfiguration = getGroupMenuConfiguration(m_CurrentGroup); // If the group stack is empty, fill the group // default view. if (m_CurrentViewStack.Count == 0) { m_CurrentViewStack.Push(getGroupDefaultView(m_CurrentGroup)); } // Reconfigure the tool bar. m_MainForm.ToolBarConfiguration = m_CurrentMenuConfiguration.ToolStandardItems; // Display the view. displayCurrentView(); } }
public void ResetViews() { using (logX.loggerX.DebugCall("Controller ResetViews")) { m_SecuritySummaryViewStack.Clear(); m_ExplorePermissionsViewStack.Clear(); m_ReportsViewStack.Clear(); m_ManageSQLsecureViewStack.Clear(); m_SecuritySummaryMenuConfiguration = new Utility.MenuConfiguration(); m_ExplorePermissionsMenuConfiguration = new Utility.MenuConfiguration(); m_ReportsMenuConfiguration = new Utility.MenuConfiguration(); m_ManageSQLsecureMenuConfiguration = new Utility.MenuConfiguration(); // reconstruct the views to clear any old data // Security summary group views m_View_Main_SecuritySummary = new Views.View_Main_SecuritySummary(); m_View_PolicyAssessment = new Views.View_PolicyAssessment(); // Explore permissions group views m_View_Main_ExplorePermissions = new Views.View_Main_ExplorePermissions(); m_View_Server = new Views.View_Server(); m_View_PermissionExplorer = new Views.View_PermissionExplorer(); // Manage SQLsecure group views m_View_Main_ManageSQLsecure = new Views.View_Main_ManageSQLsecure(); m_View_SQLsecureActivity = new Views.View_SQLsecureActivity(); m_View_Logins = new Views.View_Logins(); m_View_ManagePolicies = new Views.View_ManagePolicies(); m_View_ServerTags = new View_ServerTags(); // Reports group views m_View_Main_Reports = new Views.View_Main_Reports(); m_View_Report_AuditedServers = new Views.ControlAuditedInstancesReport(); m_View_Report_Filters = new Views.Report_Filters(); m_View_Report_GuestEnabledServers = new Views.Report_GuestEnabledDatabases(); m_View_Report_CrossServerLoginCheck = new Views.Report_CrossServerLoginCheck(); m_View_Report_MixedModeAuthentication = new Views.Report_MixedModeAuthentication(); m_View_Report_ServersWithDangerousGroups = new Views.Report_ServersWithDangerousGroups(); m_View_Report_SystemAdministratorVulnerability = new Views.Report_SystemAdministratorVulnerability(); m_View_Report_SuspectWindowsAccounts = new Views.Report_SuspectWindowsAccounts(); m_View_Report_SuspectSqlLogins = new Report_SuspectSqlLogins(); m_View_Report_VulnerableFixedRoles = new Views.Report_VulnerableFixedRoles(); m_View_Report_MailVulnerability = new Views.Report_MailVulnerability(); m_View_Report_LoginVulnerability = new Views.Report_LoginVulnerability(); m_View_Report_DatabaseChaining = new Views.Report_DatabaseChaining(); m_View_Report_ServerLoginsAndUserMappings = new Views.Report_ServerLoginsAndUserMappings(); m_View_Report_SPsWithGuestAccess = new Views.Report_OSVulnerability(); m_View_Report_UsersPermissions = new Views.Report_UsersPermissions(); m_View_Report_AllObjectsWithPermissions = new Views.Report_AllObjectsWithPermissions(); m_View_Report_DatabaseRoles = new Views.Report_DatabaseRoles(); m_View_Report_ServerRoles = new Views.Report_ServerRoles(); m_View_Report_ActivityHistory = new Views.Report_ActivityHistory(); m_View_Report_RiskAssessment = new Views.Report_RiskAssessment(); m_View_Report_CompareAssessments = new Views.Report_CompareAssessments(); m_View_Report_CompareSnapshots = new Views.Report_CompareSnapshots(); m_View_Report_Users = new Views.Report_Users(); m_CurrentGroup = Utility.ExplorerBarGroup.SecuritySummary; m_CurrentViewStack = m_SecuritySummaryViewStack; } }