public QTabCancelEventArgs(QTabItemBase tabPage, int tabPageIndex, bool cancel, TabControlAction action)
     : base(null, tabPageIndex, cancel, action) {
     this.tabPage = tabPage;
 }
示例#2
0
 public QTabCancelEventArgs(QTabItemBase tabPage, int tabPageIndex, bool cancel, TabControlAction action)
     : base(null, tabPageIndex, cancel, action)
 {
     this.tabPage = tabPage;
 }
示例#3
0
 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;
 }