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; } }
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; } }
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; } }
private void SetButtonText(string text) { if (mConnectButton.InvokeRequired) { SetButtonTextCallback d = new SetButtonTextCallback(SetButtonText); this.Invoke(d, new object[] { text }); } else { mConnectButton.Text = text; } }
public void SetButtonText(string text) { if (this.InvokeRequired) { SetButtonTextCallback cb = new SetButtonTextCallback(SetButtonText); this.Invoke(cb, new object[] { text }); } else { btnStartStop.Text = text; } }
private void SetButtonText(Button Control, string Text) { if (Control.InvokeRequired) { var d = new SetButtonTextCallback(SetButtonText); this.Invoke(d, Control, Text); } else { Control.Text = Text; } }
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; } }
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; } }
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; } }