private void tabbedGroups_PageCloseRequest(TabbedGroups tg, TGCloseRequestEventArgs e) { e.Cancel = true; Editor editor = (Editor)e.TabPage.Controls[0]; editor.Close(false); }
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(); }
private void tabbedGroupsWebSites_PageCloseRequest(TabbedGroups tg, TGCloseRequestEventArgs e) { try { e.TabPage.Dispose(); } catch { } }