Пример #1
0
 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;
             }));
         });
     }
 }
Пример #2
0
 public Form1()
 {
     InitializeComponent();
     Controller = new UpdateController();
     this.ArchitectureSelect.SelectedIndex = 0;
 }