本文整理汇总了C#中WeifenLuo.WinFormsUI.Docking.DockContentEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# DockContentEventArgs类的具体用法?C# DockContentEventArgs怎么用?C# DockContentEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DockContentEventArgs类属于WeifenLuo.WinFormsUI.Docking命名空间,在下文中一共展示了DockContentEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnContentRemoved
/// <summary>
/// When document is removed update tab texts
/// </summary>
public void OnContentRemoved(Object sender, DockContentEventArgs e)
{
TabTextManager.UpdateTabTexts();
}
示例2: DockPanel_ContentRemoved
void DockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
ctlPuttyPanel pp = e.Content as ctlPuttyPanel;
if (pp != null)
{
this.childWindows.Remove(pp.AppPanel.AppWindowHandle);
}
}
示例3: dockPanel_ContentAdded
//=====================================================================
/// <summary>
/// Update the command states when content is added
/// </summary>
/// <param name="sender">The sender of the event</param>
/// <param name="e">The event arguments</param>
private void dockPanel_ContentAdded(object sender, DockContentEventArgs e)
{
miClose.Enabled = miCloseAll.Enabled = miCloseAllButCurrent.Enabled = true;
}
示例4: mDockPanel_ContentRemoved
private void mDockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
mDockContentHistory.Remove(e.Content);
}
示例5: mDockPanel_ContentAdded
private void mDockPanel_ContentAdded(object sender, DockContentEventArgs e)
{
mDockContentHistory.Add(e.Content);
}
示例6: DockPanel_ContentAdded
void DockPanel_ContentAdded(object sender, DockContentEventArgs e)
{
this.DockPanel.BeginInvoke(new Action(
delegate
{
if (e.Content.DockHandler.DockState == DockState.Document)
{
ToolWindow window = (ToolWindow)e.Content;
this.AddDocument(window);
}
}));
}
示例7: m_documentViewContainer_ContentRemoved
void m_documentViewContainer_ContentRemoved(object sender, DockContentEventArgs e)
{
}
示例8: MainDockPanelContentRemoved
/// <summary>
/// Handles the ContentRemoved event of the main <see cref="DockPanel"/>.
/// </summary>
private void MainDockPanelContentRemoved(object sender, DockContentEventArgs e)
{
if (Disposing)
{
if (e.Content != null && e.Content.DockHandler != null)
{
e.Content.DockHandler.Close();
}
return;
}
if (mainDockPanel != null)
{
mnuMainEditFind.Enabled = mainDockPanel.DocumentsCount > 0;
mnuMainEditFindNext.Enabled = mnuMainEditFind.Enabled;
if (mainDockPanel.DocumentsCount == 0 && mFindWindow.Visible)
{
mFindWindow.Hide();
}
}
else
{
mnuMainEditFind.Enabled = false;
mnuMainEditFindNext.Enabled = false;
}
UpdateUiElements();
}
示例9: DockPanel_ContentRemoved
void DockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
ctlPuttyPanel p = e.Content as ctlPuttyPanel;
if (p != null)
{
p.TextChanged -= puttyPanel_TextChanged;
}
}
示例10: dockPanel_ContentRemoved
private void dockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
if (e.Content.GetType() == typeof(ProjectExplorer))
{
projectExplorer = null;
}
else if (e.Content.GetType() == typeof(PropertiesWindow))
{
propertiesWindow = null;
}
else if (e.Content.GetType() == typeof(CodeEditor))
{
CodeEditor codeEditor = (CodeEditor)e.Content;
if (codeEditor.EditorFile != "Untitled")
{
editorDictionary.Remove(codeEditor.EditorFile.ToLower());
}
}
}
示例11: mDockPanel_ContentRemoved
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mDockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
SceneView view = e.Content as SceneView;
if (view != null)
{
foreach (GUIProjectEntry entry in GUIProject.CurrentProject.Entries)
{
if (entry is GUIProjectScene && ((GUIProjectScene)entry).Scene == view.Scene)
{
entry.Close();
}
}
}
}
示例12: DockPanel_ContentRemoved
void DockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
if (e.Content is ISupportsCommands)
{
factory.Get<ICommandRouter>().Unregister(e.Content as ISupportsCommands);
}
}
示例13: dockPanel1_ContentRemoved
private void dockPanel1_ContentRemoved(object sender, DockContentEventArgs e) {
TabWidthUpdate();
}
示例14: dockPanel_ContentRemoved
private void dockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
if (dockPanel.Documents.Count() == 0)
{
ActiveDocument = null;
NpcList.ClearList();
}
}
示例15: dockPanel_ContentRemoved
/// <summary>
/// Update the command states when content is removed
/// </summary>
/// <param name="sender">The sender of the event</param>
/// <param name="e">The event arguments</param>
private void dockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
miClose.Enabled = miCloseAll.Enabled = miCloseAllButCurrent.Enabled = (dockPanel.Contents.Count > 0);
}