private void bottomTabControl_TabClosed(object sender, MySQL.Controls.TabClosedEventArgs e) { if (bottomTabControl.TabCount == 0) { contentSplitContainer.Panel2Collapsed = true; } ITabDocument document = (sender as FlatTabControl).DocumentFromPage(e.page); CloseTabDocument(document); }
protected internal virtual void OnTabClosed(TabClosedEventArgs args) { if (TabClosed != null) TabClosed(this, args); }
private void contentTabControl_TabClosed(object sender, TabClosedEventArgs e) { ITabDocument document = (sender as FlatTabControl).DocumentFromPage(e.page); if (document is IWorkbenchDocument) (document as IWorkbenchDocument).CloseDocument(); else if (document is MySQL.Forms.AppViewDockContent) { // Remove the appview from the page, otherwise it gets disposed with the page, // what we don't want. //e.page.Controls.Clear(); MySQL.Forms.AppViewDockContent content = document as MySQL.Forms.AppViewDockContent; content.CloseDocument(); } }