private void setSelectionStart(int val)
 {
     if (this.InvokeRequired)
     {
         // this is worker thread
         SelectionStartDelegat del = new SelectionStartDelegat(setSelectionStart);
         this.Invoke(del, new object[] { val });
     }
     else
     {
         // this is UI thread
         this.SelectionStart = val;
     }
 }
Exemplo n.º 2
0
 private void setSelectionStart(int val)
 {
     if (this.InvokeRequired)
     {
         // this is worker thread
         SelectionStartDelegat del = new SelectionStartDelegat(setSelectionStart);
         this.Invoke(del, new object[] {val});
     }
     else
     {
         // this is UI thread
         this.SelectionStart = val;
     }
 }