Example #1
0
 public void SetButtonText(Button btPassButton, string sPassText)
 {
     if (btPassButton.InvokeRequired)
     {
         SetButtonTextCallback d = new SetButtonTextCallback(SetButtonText);
         this.Invoke(d, new object[] { btPassButton, sPassText });
     }
     else
     {
         btPassButton.Text = sPassText;
     }
 }
Example #2
0
 protected void SetButtonText(Button b, string value)
 {
     if (b.InvokeRequired)
     {
         SetButtonTextCallback d = new SetButtonTextCallback(SetButtonText);
         b.BeginInvoke(d, new object[] { b, value });
     }
     else
     {
         b.Text = value;
     }
 }
Example #3
0
 private void SetButtonText(Button control, string data)
 {
     if (control.InvokeRequired)
     {
         SetButtonTextCallback d = new SetButtonTextCallback(SetButtonText);
         this.Invoke(d, new object[] { control, data });
     }
     else
     {
         control.Text = data;
     }
 }
Example #4
0
 private void SetButtonText(string text)
 {
     if (mConnectButton.InvokeRequired)
     {
         SetButtonTextCallback d = new SetButtonTextCallback(SetButtonText);
         this.Invoke(d, new object[] { text });
     }
     else
     {
         mConnectButton.Text = text;
     }
 }
Example #5
0
 public void SetButtonText(string text)
 {
     if (this.InvokeRequired)
     {
         SetButtonTextCallback cb = new SetButtonTextCallback(SetButtonText);
         this.Invoke(cb, new object[] { text });
     }
     else
     {
         btnStartStop.Text = text;
     }
 }
Example #6
0
 public void SetButtonText(string text)
 {
     if (this.InvokeRequired)
     {
         SetButtonTextCallback cb = new SetButtonTextCallback(SetButtonText);
         this.Invoke(cb, new object[] { text });
     }
     else
     {
         btnStartStop.Text = text;
     }
 }
Example #7
0
 private void SetButtonText(Button Control, string Text)
 {
     if (Control.InvokeRequired)
     {
         var d = new SetButtonTextCallback(SetButtonText);
         this.Invoke(d, Control, Text);
     }
     else
     {
         Control.Text = Text;
     }
 }
Example #8
0
 private void SetButtonTextSafely(Button button, string text)
 {
     if (button.InvokeRequired)
     {
         SetButtonTextCallback d = new SetButtonTextCallback(SetButtonTextSafely);
         Invoke(d, new object[] { button, text });
     }
     else
     {
         button.Text = text;
     }
 }
Example #9
0
 private void SetButtonText(string theText, Button theButton)
 {
     if (theButton.InvokeRequired)
     {
         SetButtonTextCallback d = new SetButtonTextCallback(SetButtonText);
         this.Invoke(d, new object[] { theText, theButton });
     }
     else
     {
         theButton.Text = theText;
     }
 }
Example #10
0
 protected void SetButtonText(Button b, string value)
 {
     if (b.InvokeRequired)
     {
         SetButtonTextCallback d = new SetButtonTextCallback(SetButtonText);
         b.BeginInvoke(d, new object[] { b, value });
     }
     else
     {
         b.Text = value;
     }
 }
Example #11
0
 private void SetButtonText(Button button, string text)
 {
     if (button.InvokeRequired)
     {
         SetButtonTextCallback d = new SetButtonTextCallback(SetButtonText);
         this.Invoke(d, new object[] { button, text });
     }
     else
     {
         button.Text = text;
     }
 }
Example #12
0
 private void SetButtonText(Button Control, string Text)
 {
     if (Control.InvokeRequired)
     {
         var d = new SetButtonTextCallback(SetButtonText);
         this.Invoke(d, Control, Text);
     }
     else
     {
         Control.Text = Text;
     }
 }