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(); }
private void btnBrowse_Click(object sender, EventArgs e) { OpenFileDialog dlgFile = new OpenFileDialog(); dlgFile.Title = "Select Target XAP File"; dlgFile.DefaultExt = ".xap"; dlgFile.Filter = "XAP (*.xap)|*.xap|All files (*.*)|*.*"; if (dlgFile.ShowDialog() == DialogResult.OK) { listAsms.Enabled = true; txtFilePath.Text = dlgFile.FileName; listAsms.Items.Clear(); txtOutput.Clear(); txtOutput.AppendText("Parsing target XAP file..." + Environment.NewLine); XAP xap = new XAP(dlgFile.FileName); XAPParserThreadClass threadClass = new XAPParserThreadClass(this, xap); new Thread(new ThreadStart(threadClass.Run)).Start(); } }
public XAPPatcherThreadClass(frmMain mainfrm, XAP xap, DeployerThreadConfig config) : base(mainfrm, xap) { _config = config; }
public XAPParserThreadClass(frmMain mainfrm, XAP xap) : base(mainfrm, xap) { }
public XAPThreadClass(frmMain mainfrm, XAP xap) { _mainfrm = mainfrm; _xap = xap; }
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(); }