private void DeUpdateLabelText(en_LabelText lbl, string strText) { try { if (this.InvokeRequired) { DelegateShowText dgateMsg = new DelegateShowText(ShowLableText); this.Invoke(dgateMsg, new object[] { lbl, strText }); } else { ShowLableText(lbl, strText); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public ThreadForm() { DelegateShowTextInstance = new DelegateShowText(this.ShowText); InitializeComponent(); }