public QTabCancelEventArgs(QTabItemBase tabPage, int tabPageIndex, bool cancel, TabControlAction action) : base(null, tabPageIndex, cancel, action) { this.tabPage = tabPage; }
private List<string> CloseAllTabsExcept(QTabItemBase leaveThisOne, bool leaveLocked = true) { List<QTabItemBase> tabs = tabControl1.TabPages.Where(item => !(leaveLocked && item.TabLocked) && item != leaveThisOne).ToList(); List<string> paths = tabs.Select(tab => ((QTabItem)tab).CurrentPath).ToList(); CloseTabs(tabs, !leaveLocked); return paths; }