Exemple #1
0
 private void SetLaunchable(bool CanLaunch)
 {
     if (this.button1.InvokeRequired)
     {
         SetLaunchableCallback d = new SetLaunchableCallback(SetLaunchable);
         this.Invoke(d, new object[] { CanLaunch });
     }
     else
     {
         this.button1.Enabled = CanLaunch;
         this.button3.Enabled = CanLaunch;
     }
 }
Exemple #2
0
 private void SetLaunchable(bool CanLaunch)
 {
     if (this.button1.InvokeRequired)
     {
         SetLaunchableCallback d = new SetLaunchableCallback(SetLaunchable);
         this.Invoke(d, new object[] { CanLaunch });
     }
     else
     {
         this.button1.Enabled = CanLaunch;
         this.button3.Enabled = CanLaunch;
     }
 }