Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="Enable"></param>
 public void EnableFetchButton(Boolean Enable)
 {
     // InvokeRequired required compares the thread ID of the
     // calling thread to the thread ID of the creating thread.
     // If these threads are different, it returns true.
     if (this.dataGridViewResults.InvokeRequired)
     {
         SetDeployFolderButtonCallback d = new SetDeployFolderButtonCallback(EnableFetchButton);
         this.Invoke(d, new object[] { Enable });
     }
     else
     {
         // enable or disable the deploy folder button
         buttonFetch.Enabled = Enable;
     }
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="Enable"></param>
 public void EnableFetchButton(Boolean Enable)
 {
     // InvokeRequired required compares the thread ID of the
     // calling thread to the thread ID of the creating thread.
     // If these threads are different, it returns true.
     if (this.dataGridViewResults.InvokeRequired)
     {
         SetDeployFolderButtonCallback d = new SetDeployFolderButtonCallback(EnableFetchButton);
         this.Invoke(d, new object[] { Enable });
     }
     else
     {
         // enable or disable the deploy folder button
         buttonFetch.Enabled = Enable;
     }
 }