예제 #1
0
 private QTabItem CloneTabButton(QTabItem tab, string optionURL, bool fSelect, int index) {
     NowTabCloned = fSelect;
     QTabItem item = tab.Clone();
     if(index < 0) {
         AddInsertTab(item);
     }
     else if((-1 < index) && (index < (tabControl1.TabCount + 1))) {
         tabControl1.TabPages.Insert(index, item);
     }
     else {
         AddInsertTab(item);
     }
     if(optionURL != null) {
         using(IDLWrapper wrapper = new IDLWrapper(optionURL)) {
             item.NavigatedTo(optionURL, wrapper.IDL, -1);
         }
     }
     if(fSelect) {
         tabControl1.SelectTab(item);
     }
     else {
         item.RefreshRectangle();
         tabControl1.Refresh();
     }
     return item;
 }
예제 #2
0
 private void CloneTabButton(QTabItem tab, LogData log) {
     NowTabCloned = true;
     QTabItem item = tab.Clone();
     AddInsertTab(item);
     using(IDLWrapper wrapper = new IDLWrapper(log.IDL)) {
         if(wrapper.Available) {
             item.NavigatedTo(wrapper.Path, wrapper.IDL, log.Hash);
         }
     }
     tabControl1.SelectTab(item);
 }