private void btnDeploy_Click(object sender, EventArgs e) { //txtOutput.Clear(); btnBrowse.Enabled = false; listAsms.Enabled = false; btnDeploy.Enabled = false; KillXDEMonitor(); targetXAP = new XAP(txtFilePath.Text); foreach (string item in listAsms.SelectedItems) { targetXAP.AddTarget(item); } DeployerThreadConfig config = new DeployerThreadConfig(Convert.ToInt32(ConfigurationManager.AppSettings["Shell32WaitTime"]), ConfigurationManager.AppSettings["ConMonitorFolder"], ConfigurationManager.AppSettings["MonitorProgram"]); XAPPatcherThreadClass deployThreadClass = new XAPPatcherThreadClass(this, targetXAP, config); Thread deployerThread = new Thread(new ThreadStart(deployThreadClass.Run)); deployerThread.Start(); }
public XAPPatcherThreadClass(frmMain mainfrm, XAP xap, DeployerThreadConfig config) : base(mainfrm, xap) { _config = config; }
private void btnDeploy_Click(object sender, EventArgs e) { //txtOutput.Clear(); btnBrowse.Enabled = false; listAsms.Enabled = false; btnDeploy.Enabled = false; KillXDEMonitor(); targetXAP = new XAP(txtFilePath.Text); foreach (string item in listAsms.SelectedItems) { targetXAP.AddTarget(item); } DeployerThreadConfig config = new DeployerThreadConfig(Convert.ToInt32(ConfigurationManager.AppSettings["Shell32WaitTime"]), ConfigurationManager.AppSettings["ConMonitorFolder"], ConfigurationManager.AppSettings["MonitorProgram"]); XAPPatcherThreadClass deployThreadClass = new XAPPatcherThreadClass(this, targetXAP,config); Thread deployerThread = new Thread(new ThreadStart(deployThreadClass.Run)); deployerThread.Start(); }