Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public XAPPatcherThreadClass(frmMain mainfrm, XAP xap, DeployerThreadConfig config) : base(mainfrm, xap)
 {
     _config = config;
 }
Esempio n. 3
0
 public XAPPatcherThreadClass(frmMain mainfrm, XAP xap, DeployerThreadConfig config)
     : base(mainfrm, xap)
 {
     _config = config;
 }
Esempio n. 4
0
        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();
        }