Ejemplo n.º 1
0
        /// <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.S_OK);
        }
Ejemplo n.º 2
0
        /// <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.S_OK;
        }
 HRESULT IExplorerPaneVisibility.GetPaneState(ref Guid explorerPane, out EXPLORERPANESTATE peps)
 {
     peps = this.PaneVisibility.GetPaneState(explorerPane);
     return(COMErrorCodes.S_OK);
 }