/// /// <summary> /// Adds a new TabPage to the TabControl /// </summary> /// <param name="tabPage"></param> public void addTabPage(cTabPage tabPage) { mainTabControl.Visible = true; _strTabIndex = tabPage.Name; mainTabControl.Controls.Add(tabPage); //Adds TabPage to TabContol mainTabControl.SelectedTab = tabPage; //Makes new Tab the selected tab }
/// /// <summary> /// Adds a new TabPage to the TabControl /// </summary> /// <param name="tabPage"></param> public void addTabPage(cTabPage tabPage) { mainTabControl.Visible = true; _strTabIndex = tabPage.Name; mainTabControl.Controls.Add(tabPage); //Adds TabPage to TabContol mainTabControl.SelectedTab = tabPage; //Makes new Tab the selected tab }
public void addTab(ProjectSettings ps) { string strProName = ps.ProjectName; //Sets currently selected tab to this new tab cTabPage tabPage = new cTabPage(strProName, this); _dicTabPages.Add(strProName, tabPage); _dicTabPages[strProName].updateSettings(ps); //Updates/Adds project settings to tab List <TargetSettings> lstTargets = _proInter.getTargets(strProName); //Fetchs, if any, upload target addresses if (lstTargets.Count > 0) //If Uploadfolders exist, add to tab display { _dicTabPages[strProName].addMultipleTargets(lstTargets); } _Main.addTabPage(tabPage); }