예제 #1
0
        private void tabbedGroups_PageCloseRequest(TabbedGroups tg, TGCloseRequestEventArgs e)
        {
            e.Cancel = true;
            Editor editor = (Editor)e.TabPage.Controls[0];

            editor.Close(false);
        }
예제 #2
0
        private void TabbedGroupPageClosePressedEventHandler(TabbedGroups groups, TGCloseRequestEventArgs e)
        {
            var wv = (WorkspaceView)e.TabPage.Tag;

            // We cancel so that DotNetMagic doesn't remove the tab; we want
            // to do that programatically
            e.Cancel = true;

            // raise close requested event
            wv.RaiseCloseRequested();
        }
예제 #3
0
 private void tabbedGroupsWebSites_PageCloseRequest(TabbedGroups tg, TGCloseRequestEventArgs e)
 {
     try
     {
         e.TabPage.Dispose();
     }
     catch
     {
     }
 }
예제 #4
0
        private void TabbedGroupPageClosePressedEventHandler(TabbedGroups groups, TGCloseRequestEventArgs e)
        {
            var wv = (WorkspaceView)e.TabPage.Tag;

            // We cancel so that DotNetMagic doesn't remove the tab; we want
            // to do that programatically
            e.Cancel = true;

            // raise close requested event
            wv.RaiseCloseRequested();
        }