/// <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); } }
private void dockPanel_ContentRemoved(object sender, DockContentEventArgs e) { CodeEditorForm codeEditor = e.Content as CodeEditorForm; if (codeEditor != null && ActiveCodeEditors.Contains(codeEditor)) { ActiveCodeEditors.Remove(codeEditor); } }
/// <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); }