本文整理汇总了C#中WeifenLuo.WinFormsUI.Docking.DockContentEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# DockContentEventArgs类的具体用法?C# DockContentEventArgs怎么用?C# DockContentEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DockContentEventArgs类属于WeifenLuo.WinFormsUI.Docking命名空间,在下文中一共展示了DockContentEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: OnContentRemoved
/// <summary>
/// When document is removed update tab texts
/// </summary>
public void OnContentRemoved(Object sender, DockContentEventArgs e)
{
TabTextManager.UpdateTabTexts();
}
开发者ID:xeronith,项目名称:flashdevelop,代码行数:7,代码来源:MainForm.cs
示例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);
}
}
开发者ID:mesenger,项目名称:superputty,代码行数:8,代码来源:ChildWindowFocusHelper.cs
示例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;
}
开发者ID:armin-bauer,项目名称:SHFB,代码行数:11,代码来源:MainForm.cs
示例4: mDockPanel_ContentRemoved
private void mDockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
mDockContentHistory.Remove(e.Content);
}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:4,代码来源:MainWindow.cs
示例5: mDockPanel_ContentAdded
private void mDockPanel_ContentAdded(object sender, DockContentEventArgs e)
{
mDockContentHistory.Add(e.Content);
}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:4,代码来源:MainWindow.cs
示例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);
}
}));
}
开发者ID:KroMignon,项目名称:SuperPuTTY,代码行数:12,代码来源:TabSwitcher.cs
示例7: m_documentViewContainer_ContentRemoved
void m_documentViewContainer_ContentRemoved(object sender, DockContentEventArgs e)
{
}
开发者ID:koksaver,项目名称:CodeHelper,代码行数:3,代码来源:DocumentViewManager.cs
示例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();
}
开发者ID:couchcoding,项目名称:Logbert,代码行数:33,代码来源:MainForm.cs
示例9: DockPanel_ContentRemoved
void DockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
ctlPuttyPanel p = e.Content as ctlPuttyPanel;
if (p != null)
{
p.TextChanged -= puttyPanel_TextChanged;
}
}
开发者ID:keramist,项目名称:superputty,代码行数:8,代码来源:frmSuperPutty.cs
示例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());
}
}
}
开发者ID:rpgtoolkit,项目名称:rpgcodeexpress,代码行数:20,代码来源:MainMdi.cs
示例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();
}
}
}
}
开发者ID:RasterCode,项目名称:OtterUI,代码行数:20,代码来源:OtterEditorMainForm.cs
示例12: DockPanel_ContentRemoved
void DockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
if (e.Content is ISupportsCommands)
{
factory.Get<ICommandRouter>().Unregister(e.Content as ISupportsCommands);
}
}
开发者ID:mausch,项目名称:NHWorkbench,代码行数:7,代码来源:MainPresenter.cs
示例13: dockPanel1_ContentRemoved
private void dockPanel1_ContentRemoved(object sender, DockContentEventArgs e) {
TabWidthUpdate();
}
开发者ID:sepich,项目名称:superputty,代码行数:3,代码来源:frmSuperPutty.cs
示例14: dockPanel_ContentRemoved
private void dockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
if (dockPanel.Documents.Count() == 0)
{
ActiveDocument = null;
NpcList.ClearList();
}
}
开发者ID:scriptord3,项目名称:RagnarokNPCEditor,代码行数:8,代码来源:MainForm.cs
示例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);
}
开发者ID:armin-bauer,项目名称:SHFB,代码行数:9,代码来源:MainForm.cs
示例16: dockPanel_ContentRemoved
private void dockPanel_ContentRemoved(object sender, DockContentEventArgs e)
{
// mdi window menu item remove dropdown items
if (typeof(Document).IsInstanceOfType(e.Content.DockHandler.Form))
{
windowToolStripMenuItem.DropDownItems.RemoveByKey(e.Content.DockHandler.TabText.Replace("*", ""));
if (windowToolStripMenuItem.DropDownItems.Count == 2)
{
windowToolStripMenuItem.DropDownItems.RemoveAt(1);
}
}
if (typeof(XMLDoc).IsInstanceOfType(e.Content.DockHandler.Form))
{
XMLDoc doc = (XMLDoc)e.Content.DockHandler.Form;
if (m_xmlNodeExplorer.Filename != null && doc != null && doc.FileName != null && doc.FileName.ToLower().Equals(m_xmlNodeExplorer.Filename.ToLower()) && !this.Disposing)
{
m_xmlNodeExplorer.Clear();
}
}
}
开发者ID:ViniciusConsultor,项目名称:sqlschematool,代码行数:20,代码来源:Main.cs
示例17: DockPanelContentRemoved
/// ------------------------------------------------------------------------------------
/// <summary>
/// Handles the ContentRemoved event of the m_dockPanel control.
/// </summary>
/// ------------------------------------------------------------------------------------
protected virtual void DockPanelContentRemoved(object sender, DockContentEventArgs e)
{
}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:8,代码来源:ObjectBrowser.cs
示例18: dockPanel_ContentAdded
private void dockPanel_ContentAdded(object sender, DockContentEventArgs e)
{
// mdi window menu item add dropdown items
if (typeof(Document).IsInstanceOfType(e.Content.DockHandler.Form))
{
if (windowToolStripMenuItem.DropDownItems.Count < 2)
{
windowToolStripMenuItem.DropDownItems.Add("-");
}
windowToolStripMenuItem.DropDownItems.Add(e.Content.DockHandler.TabText);
windowToolStripMenuItem.DropDownItems[windowToolStripMenuItem.DropDownItems.Count - 1].Name = e.Content.DockHandler.TabText;
}
if (typeof(DTSDoc).IsInstanceOfType(e.Content.DockHandler.Form))
{
generateXMLOutputToolStripMenuItem.Enabled = true;
dTSPackageSnapshotToolStripMenuItem.Enabled = true;
btnGenXml.Enabled = true;
}
if (typeof(XMLDoc).IsInstanceOfType(e.Content.DockHandler.Form))
{
Cursor.Current = Cursors.WaitCursor;
XMLDoc doc = (XMLDoc)e.Content.DockHandler.Form;
doc.SelectedForCompare -= new EventHandler<XMLDocEventArgs>(doc_SelectedForCompare);
doc.SelectedForCompare += new EventHandler<XMLDocEventArgs>(doc_SelectedForCompare);
doc.UnSelectedForCompare -= new EventHandler<XMLDocEventArgs>(doc_UnSelectedForCompare);
doc.UnSelectedForCompare += new EventHandler<XMLDocEventArgs>(doc_UnSelectedForCompare);
doc.SyncWithTree -= new EventHandler<XMLDocEventArgs>(doc_SyncWithTree);
doc.SyncWithTree += new EventHandler<XMLDocEventArgs>(doc_SyncWithTree);
doc.ReCreateDTS -= new EventHandler<XMLDocEventArgs>(doc_ReCreateDTS);
doc.ReCreateDTS += new EventHandler<XMLDocEventArgs>(doc_ReCreateDTS);
doc.FormClosing -= new FormClosingEventHandler(doc_FormClosing);
doc.FormClosing += new FormClosingEventHandler(doc_FormClosing);
// this is what syncs the xml node explorer currently
// only done on the initial load of said doc.
// so xml node explorer only displays the last xml file loaded
m_xmlNodeExplorer.OpenFile(doc.FileName);
LastDirectory = doc.InitialDirectory;
Cursor.Current = Cursors.Default;
}
if (typeof(SQLDoc).IsInstanceOfType(e.Content.DockHandler.Form))
{
SQLDoc doc = (SQLDoc)e.Content.DockHandler.Form;
LastDirectory = doc.InitialDirectory;
// TODO: enable buttons/menus if its a SQL doc
}
// added this to activate the event handler for activepanel and activedocument changed
e.Content.DockHandler.Form.Focus();
}
开发者ID:ViniciusConsultor,项目名称:sqlschematool,代码行数:48,代码来源:Main.cs
示例19: MainDockPanelContentAdded
/// <summary>
/// Handles the ContentAdded event of the main <see cref="DockPanel"/>.
/// </summary>
private void MainDockPanelContentAdded(object sender, DockContentEventArgs e)
{
mnuMainEditFind.Enabled = true;
mnuMainEditFindNext.Enabled = true;
UpdateUiElements();
}
开发者ID:couchcoding,项目名称:Logbert,代码行数:10,代码来源:MainForm.cs
示例20: DockPanelContentRemoved
private void DockPanelContentRemoved(object sender, DockContentEventArgs e)
{
DockHandlerUnsubscribe(e.Content);
OnDockStateChanged();
}
开发者ID:sbambach,项目名称:ATF,代码行数:5,代码来源:ControlHostService.cs
注:本文中的WeifenLuo.WinFormsUI.Docking.DockContentEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论