Пример #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();
        }
Пример #2
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();
        }