/// <summary> /// Controls the visibility of the explorer borwser panes /// </summary> /// <param name="explorerPane">a guid identifying the pane</param> /// <param name="peps">the pane state desired</param> /// <returns></returns> HResult IExplorerPaneVisibility.GetPaneState(ref Guid explorerPane, out ExplorerPaneState peps) { switch (explorerPane.ToString()) { case ExplorerBrowserViewPanes.AdvancedQuery: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.AdvancedQuery); break; case ExplorerBrowserViewPanes.Commands: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Commands); break; case ExplorerBrowserViewPanes.CommandsOrganize: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.CommandsOrganize); break; case ExplorerBrowserViewPanes.CommandsView: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.CommandsView); break; case ExplorerBrowserViewPanes.Details: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Details); break; case ExplorerBrowserViewPanes.Navigation: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Navigation); break; case ExplorerBrowserViewPanes.Preview: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Preview); break; case ExplorerBrowserViewPanes.Query: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Query); break; default: #if LOG_UNKNOWN_PANES System.Diagnostics.Debugger.Log(4, "ExplorerBrowser", "unknown pane view state. id=" + explorerPane.ToString( )); #endif peps = VisibilityToPaneState(PaneVisibilityState.Show); break; } return(HResult.Ok); }
/// <summary> /// Controls the visibility of the explorer borwser panes /// </summary> /// <param name="explorerPane">a guid identifying the pane</param> /// <param name="peps">the pane state desired</param> /// <returns></returns> HResult IExplorerPaneVisibility.GetPaneState(ref Guid explorerPane, out ExplorerPaneState peps) { switch (explorerPane.ToString()) { case ExplorerBrowserViewPanes.AdvancedQuery: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.AdvancedQuery); break; case ExplorerBrowserViewPanes.Commands: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Commands); break; case ExplorerBrowserViewPanes.CommandsOrganize: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.CommandsOrganize); break; case ExplorerBrowserViewPanes.CommandsView: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.CommandsView); break; case ExplorerBrowserViewPanes.Details: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Details); break; case ExplorerBrowserViewPanes.Navigation: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Navigation); break; case ExplorerBrowserViewPanes.Preview: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Preview); break; case ExplorerBrowserViewPanes.Query: peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Query); break; default: #if LOG_UNKNOWN_PANES System.Diagnostics.Debugger.Log( 4, "ExplorerBrowser", "unknown pane view state. id=" + explorerPane.ToString( ) ); #endif peps = VisibilityToPaneState(PaneVisibilityState.Show); break; } return HResult.Ok; }