本文整理汇总了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();
}
示例2: ToggleDocked
private void ToggleDocked(DockContent dockContent)
{
if (dockContent.Visible)
dockContent.Hide();
else
ShowDocked(dockContent);
}
示例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();
}
示例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;
}
示例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);
}
}
示例6: HideContent
internal void HideContent(DockContent dc)
{
if (!dc.IsDisposed)
dc.Hide();
}
示例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();
}
示例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);
}
}