Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 public void ResizeResults()
 {
     // 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)
     {
         SetResultsResizeCallback d = new SetResultsResizeCallback(ResizeResults);
         this.Invoke(d, new object[] { });
     }
     else
     {
         // resize the control for the new deployable file(s) data
         dataGridViewResults.AutoResizeColumns();
     }
 }
 /// <summary>
 /// 
 /// </summary>
 public void ResizeResults()
 {
     // 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)
     {
         SetResultsResizeCallback d = new SetResultsResizeCallback(ResizeResults);
         this.Invoke(d, new object[] { });
     }
     else
     {
         // resize the control for the new deployable file(s) data
         dataGridViewResults.AutoResizeColumns();
     }
 }