public XTMFUpdateForm() { InitializeComponent(); Controller = new UpdateController(); Controller.XtmfUpdate = this; ArchitectureSelect.SelectedIndex = 0; if (ParentProcess != null) { UpdateButton.Enabled = false; Task.Factory.StartNew(() => { if (!ParentProcess.HasExited) { ParentProcess.WaitForExit(); } Invoke(new Action(() => { UpdateButton.Enabled = true; })); }); } }
public Form1() { InitializeComponent(); Controller = new UpdateController(); this.ArchitectureSelect.SelectedIndex = 0; }