示例#1
0
 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);
     }
 }
示例#2
0
 public ThreadForm()
 {
     DelegateShowTextInstance = new DelegateShowText(this.ShowText);
     InitializeComponent();
 }