当前位置: 首页>>代码示例>>C#>>正文


C# DockContent.Hide方法代码示例

本文整理汇总了C#中WeifenLuo.WinFormsUI.Docking.DockContent.Hide方法的典型用法代码示例。如果您正苦于以下问题:C# DockContent.Hide方法的具体用法?C# DockContent.Hide怎么用?C# DockContent.Hide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WeifenLuo.WinFormsUI.Docking.DockContent的用法示例。


在下文中一共展示了DockContent.Hide方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PanelsHelper

        public PanelsHelper(PluginMain pluginMain, Image pluginImage)
        {
            localsUI = new LocalsUI(pluginMain);
            localsUI.Text = TextHelper.GetString("Title.LocalVariables");
            localsPanel = PluginBase.MainForm.CreateDockablePanel(localsUI, localsGuid, pluginImage, DockState.DockLeft);
            localsPanel.Hide();
            
            stackframeUI = new StackframeUI(pluginMain, MenusHelper.imageList);
            stackframeUI.Text = TextHelper.GetString("Title.StackTrace");
            stackframePanel = PluginBase.MainForm.CreateDockablePanel(stackframeUI, stackframeGuid, pluginImage, DockState.DockLeft);
            stackframePanel.Hide();

            watchUI = new WatchUI();
            watchUI.Text = TextHelper.GetString("Title.Watch");
            watchPanel = PluginBase.MainForm.CreateDockablePanel(watchUI, watchGuid, pluginImage, DockState.DockLeft);
            watchPanel.Hide();

            breakPointUI = new BreakPointUI(pluginMain, PluginMain.breakPointManager);
            breakPointUI.Text = TextHelper.GetString("Title.Breakpoints");
            breakPointPanel = PluginBase.MainForm.CreateDockablePanel(breakPointUI, breakPointGuid, pluginImage, DockState.DockLeft);
            breakPointPanel.Hide();

            immediateUI = new ImmediateUI();
            immediateUI.Text = TextHelper.GetString("Title.Immediate");
            immediatePanel = PluginBase.MainForm.CreateDockablePanel(immediateUI, immediateGuid, pluginImage, DockState.DockLeft);
            immediatePanel.Hide();

            threadsUI = new ThreadsUI(pluginMain, MenusHelper.imageList);
            threadsUI.Text = TextHelper.GetString("Title.Threads");
            threadsPanel = PluginBase.MainForm.CreateDockablePanel(threadsUI, threadsGuid, pluginImage, DockState.DockLeft);
            threadsPanel.Hide();
        }
开发者ID:zpLin,项目名称:flashdevelop,代码行数:32,代码来源:PanelsHelper.cs

示例2: ToggleDocked

 private void ToggleDocked(DockContent dockContent)
 {
     if (dockContent.Visible)
         dockContent.Hide();
     else
         ShowDocked(dockContent);
 }
开发者ID:AlexeyMz,项目名称:WebExecutor,代码行数:7,代码来源:MainForm.cs

示例3: PanelsHelper

        public PanelsHelper(PluginMain pluginMain, Image pluginImage)
        {
            pluginUI = new PluginUI(pluginMain);
            pluginUI.Text = TextHelper.GetString("Title.LocalVariables");
            pluginPanel = PluginBase.MainForm.CreateDockablePanel(pluginUI, pluginGuid, pluginImage, DockState.DockLeft);
            pluginPanel.Hide();
            
            stackframeUI = new StackframeUI(pluginMain, MenusHelper.imageList);
            stackframeUI.Text = TextHelper.GetString("Title.StackTrace");
            stackframePanel = PluginBase.MainForm.CreateDockablePanel(stackframeUI, stackframeGuid, pluginImage, DockState.DockLeft);
            stackframePanel.Hide();

			watchUI = new WatchUI();
			watchUI.Text = TextHelper.GetString("Title.Watch");
            watchPanel = PluginBase.MainForm.CreateDockablePanel(watchUI, watchGuid, pluginImage, DockState.DockLeft);
            watchPanel.Hide();

            breakPointUI = new BreakPointUI(pluginMain, PluginMain.breakPointManager);
            breakPointUI.Text = TextHelper.GetString("Title.Breakpoints");
            breakPointPanel = PluginBase.MainForm.CreateDockablePanel(breakPointUI, breakPointGuid, pluginImage, DockState.DockLeft);
            breakPointPanel.Hide();
        }
开发者ID:ImaginationSydney,项目名称:flashdevelop,代码行数:22,代码来源:PanelsHelper.cs

示例4: UI_SetupDocks

        private void UI_SetupDocks()
        {
            m_PreviewPanel = Helpers.WrapDockContent(dockPanel, renderToolstripContainer, "Current");
            m_PreviewPanel.DockState = DockState.Document;
            m_PreviewPanel.AllowEndUserDocking = false;
            m_PreviewPanel.Show();

            m_PreviewPanel.CloseButton = false;
            m_PreviewPanel.CloseButtonVisible = false;

            m_PreviewPanel.DockHandler.TabPageContextMenuStrip = tabContextMenu;

            dockPanel.ActiveDocumentChanged += new EventHandler(dockPanel_ActiveDocumentChanged);

            var w3 = Helpers.WrapDockContent(dockPanel, roPanel, "Inputs");
            w3.DockAreas &= ~DockAreas.Document;
            w3.DockState = DockState.DockRight;
            w3.Show();

            w3.CloseButton = false;
            w3.CloseButtonVisible = false;

            var w5 = Helpers.WrapDockContent(dockPanel, rwPanel, "Outputs");
            w5.DockAreas &= ~DockAreas.Document;
            w5.DockState = DockState.DockRight;
            w5.Show(w3.Pane, w3);

            w5.CloseButton = false;
            w5.CloseButtonVisible = false;

            m_TexlistDockPanel = Helpers.WrapDockContent(dockPanel, texlistContainer, "Texture List");
            m_TexlistDockPanel.DockAreas &= ~DockAreas.Document;
            m_TexlistDockPanel.DockState = DockState.DockLeft;
            m_TexlistDockPanel.Hide();

            m_TexlistDockPanel.HideOnClose = true;

            var w4 = Helpers.WrapDockContent(dockPanel, pixelContextPanel, "Pixel Context");
            w4.DockAreas &= ~DockAreas.Document;
            w4.Show(w3.Pane, DockAlignment.Bottom, 0.3);

            w4.CloseButton = false;
            w4.CloseButtonVisible = false;
        }
开发者ID:Anteru,项目名称:renderdoc,代码行数:44,代码来源:TextureViewer.cs

示例5: ShowDockContent

        public void ShowDockContent(DockContent content, DockContent defaultDock)
        {
            try
            {
                content.FormClosing += new FormClosingEventHandler(content_FormClosing);

                List<DockContent> typeList;
                Type type = content.GetType();
                if (!DockContents.TryGetValue(type, out typeList))
                {
                    typeList = new List<DockContent>();
                    DockContents.Add(type, typeList);
                }
                typeList.Add(content);

                var handler = DockContentAdded;
                if (handler != null)
                {
                    handler(this, new DockContentEventArgs(content));
                }

                if (defaultDock == null)
                {
                    content.Show(this.dockPanel, DockState.Float);
                }
                else
                {
                    content.Show(defaultDock.Pane, null);

                    if (((defaultDock == DockFiles) || (defaultDock == DockEditors)) && !defaultDock.IsHidden)
                    {
                        defaultDock.Hide();
                    }
                }
            }
            catch (Exception ex)
            {
                Utility.ReportException(ex);
            }
        }
开发者ID:anhlehoang410,项目名称:SB3Utility,代码行数:40,代码来源:MDIParent.cs

示例6: HideContent

 internal void HideContent(DockContent dc)
 {
     if (!dc.IsDisposed)
         dc.Hide();
 }
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:5,代码来源:WindowOperations.cs

示例7: ShowDockContent

        private void ShowDockContent(DockContent dockContent, ControlInfo info)
        {
            if (info == null)
            {
                dockContent.Show(m_dockPanel);
                return;
            }

            DockState state;
            if (IsCenterGroup(info.Group))
            {

                if (dockContent.DockHandler.IsFloat)
                    state = DockState.Float;
                else
                    state = DockState.Document;
            }
            else
            {
                switch (info.Group)
                {
                    case StandardControlGroup.Left:
                        state = DockState.DockLeft;
                        break;

                    case StandardControlGroup.Right:
                        state = DockState.DockRight;
                        break;

                    case StandardControlGroup.Top:
                        state = DockState.DockTop;
                        break;

                    case StandardControlGroup.Bottom:
                        state = DockState.DockBottom;
                        break;

                    case StandardControlGroup.Floating:
                        state = DockState.Float;
                        break;

                    default:
                        state = DockState.DockLeftAutoHide;
                        break;
                }

            }

            if (dockContent.GroupTag != null && state != DockState.Float)
            {
                // try floating window first to see if there is a match
                foreach (var floatWindow in m_dockPanel.FloatWindows)
                {
                    foreach (var pane in floatWindow.VisibleNestedPanes)
                    {
                        if (pane.GroupTag == dockContent.GroupTag)
                        {
                            state = DockState.Float;
                        }
                    }
                }
            }
            dockContent.Show(m_dockPanel, state);

            if (!info.VisibleByDefault)
                dockContent.Hide();
        }
开发者ID:sbambach,项目名称:ATF,代码行数:67,代码来源:ControlHostService.cs

示例8: ShowDockContent

        public void ShowDockContent(DockContent content, DockContent defaultDock, ContentCategory category)
        {
            try
            {
                content.FormClosed += content_FormClosed;

                List<DockContent> typeList;
                Type type = content.GetType();
                if (!DockContents.TryGetValue(type, out typeList))
                {
                    typeList = new List<DockContent>();
                    DockContents.Add(type, typeList);
                }
                typeList.Add(content);

                var handler = DockContentAdded;
                if (handler != null)
                {
                    handler(this, new DockContentEventArgs(content));
                }

                if (defaultDock == null)
                {
                    content.Show(this.dockPanel, DockState.Float);
                }
                else
                {
                    content.Show(defaultDock.Pane, null);

                    if (((defaultDock == DockFiles) || (defaultDock == DockEditors)) && !defaultDock.IsHidden)
                    {
                        defaultDock.Hide();
                    }
                }

                if (category != ContentCategory.None)
                {
                    ((FormQuickAccess)DockQuickAccess).RegisterOpenFile(content, category);
                }
            }
            catch (Exception ex)
            {
                Utility.ReportException(ex);
            }
        }
开发者ID:hejob,项目名称:SB3Utility,代码行数:45,代码来源:MDIParent.cs


注:本文中的WeifenLuo.WinFormsUI.Docking.DockContent.Hide方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。