Пример #1
0
 private void UpdateStatusLabel(string txt)
 {
     if (this.statusControl.InvokeRequired)
     {
         UpdateStatusInvokeCallback md = new UpdateStatusInvokeCallback(this.UpdateStatusLabel);
         this.statusControl.FindForm().Invoke(md, new object[] { txt });
     }
     else
     {
         this.statusControl.Text = txt;
     }
 }
Пример #2
0
 private void UpdateStatusLabel(string txt)
 {
     if (this.statusStrip1.InvokeRequired)
     {
         UpdateStatusInvokeCallback md = new UpdateStatusInvokeCallback(this.UpdateStatusLabel);
         this.Invoke(md, new object[] { txt });
     }
     else
     {
         this.toolStripStatusLabel1.Text = txt;
     }
 }