예제 #1
0
 public void EnableOk()
 {
     if (this.buttonOK.InvokeRequired) //see http://msdn.microsoft.com/en-us/library/ms171728(VS.90).aspx
     {
         EnableOKCallBack d = new EnableOKCallBack(EnableOk);
         this.Invoke(d);
     }
     else
     {
         buttonOK.Enabled = true;
         this.Update();
     }
 }
예제 #2
0
 public void EnableOk()
 {
     if (this.buttonOK.InvokeRequired) //see http://msdn.microsoft.com/en-us/library/ms171728(VS.90).aspx
     {
         EnableOKCallBack d = new EnableOKCallBack(EnableOk);
         this.Invoke(d);
     }
     else
     {
         buttonOK.Enabled = true;
         this.Update();
     }
 }