예제 #1
0
        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);
        }
예제 #2
0
 protected internal virtual void OnTabClosed(TabClosedEventArgs args)
 {
     if (TabClosed != null)
     TabClosed(this, args);
 }
예제 #3
0
 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();
     }
 }