/// /// <summary> /// Edit's selected target's settings. /// </summary> public void editTarget() { if (_strTabIndex == "") { return; } string strTarget = _tabInter.getSelectedIP(_strTabIndex); if ((strTarget == "") || (_proInter.checkActiveSingle(_strTabIndex, strTarget) == true)) { return; } else { List <TargetSettings> lstTSettings = _proInter.getTargets(_strTabIndex); TargetSettings oldTs = null; foreach (TargetSettings ts in lstTSettings) { if (ts.TargetServer == strTarget) { oldTs = ts; break; } } frmAddTarget targetDialog = new frmAddTarget(lstTSettings, oldTs); if (targetDialog.ShowDialog() == DialogResult.OK) { _proInter.removeTarget(_strTabIndex); TargetSettings ts = targetDialog.getTargetSettings(); //Fetches target settings from addTargetDialog _proInter.addTarget(_strTabIndex, ts); //Adds target to project } } }
/// /// <summary> /// Adds upload target to project. /// </summary> /// <param name="_strProName">Project's name</param> /// <param name="ts">Target settings</param> public void addTarget(string strProName, TargetSettings ts) { _dicProjectList[strProName].addTarget(ts); _tabInterface.addSingleTarget(strProName, ts); }
public ThreadObject(string strProName, TargetSettings ts) { this.strProName = strProName; this.ts = ts; }
public void addSingleTarget(string proName, TargetSettings ts) { _dicTabPages[proName].addSingleTarget(ts); //Updates the Listview dispaly with target list }
/// /// <summary> /// Constructor /// </summary> /// <param name="_ts">Target Settings to test</param> public CheckConnection(TargetSettings ts) { this.ts = ts; }