Example #1
0
        /// <include file='CodeDoc\DockPanel.xml' path='//CodeDoc/Class[@name="DockPanel"]/Method[@name="OnContentRemoved(DockContentEventArgs)"]/*' />
        protected virtual void OnContentRemoved(DockContentEventArgs e)
        {
            DockContentEventHandler handler = (DockContentEventHandler)Events[ContentRemovedEvent];

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #2
0
		private void dockPanel_ContentRemoved(object sender, DockContentEventArgs e)
		{
			CodeEditorForm codeEditor = e.Content as CodeEditorForm;

			if (codeEditor != null && ActiveCodeEditors.Contains(codeEditor))
			{
				ActiveCodeEditors.Remove(codeEditor);
			}
		}
Example #3
0
		/// <include file='CodeDoc\DockPanel.xml' path='//CodeDoc/Class[@name="DockPanel"]/Method[@name="OnContentRemoved(DockContentEventArgs)"]/*' />
		protected virtual void OnContentRemoved(DockContentEventArgs e)
		{
			DockContentEventHandler handler = (DockContentEventHandler)Events[ContentRemovedEvent];
			if (handler != null)
				handler(this, e);
		}