Esempio n. 1
0
 private void SetFormEnabled()
 {
     if (this.InvokeRequired)
     {
         SetFormEnabledCallback d = new SetFormEnabledCallback(SetFormEnabled);
         this.Invoke(d);
     }
     else
     {
         this.Enabled = true;
     }
 }
Esempio n. 2
0
 private void SetFormEnabled(bool state)
 {
     if (this.InvokeRequired)
     {
         SetFormEnabledCallback c = new SetFormEnabledCallback(SetFormEnabled);
         this.Invoke(c, new object[] { state });
     }
     else
     {
         this.Enabled = state;
     }
 }