示例#1
0
 protected void CrossThreadBeginUpdate(ListView lview)
 {
     if (this.InvokeRequired)
     {
         CrossThreadBeginUpdateDelegate d = new CrossThreadBeginUpdateDelegate(this.CrossThreadBeginUpdate);
         this.Invoke(d, new Object[] { lview });
     }
     else
     {
         lview.BeginUpdate();
     }
 }
 protected void CrossThreadBeginUpdate(ListView lview)
 {
     if (this.InvokeRequired)
     {
         CrossThreadBeginUpdateDelegate d = new CrossThreadBeginUpdateDelegate(this.CrossThreadBeginUpdate);
         this.Invoke(d, new Object[] { lview });
     }
     else
     {
         lview.BeginUpdate();
     }
 }