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