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


C# Docking.DockContentEventArgs类代码示例

本文整理汇总了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();
 }
开发者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


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