Пример #1
0
 private void AddError(object sender, StatusEventArgs e) {
     if (InvokeRequired) {
         BeginInvoke(new EventHandler<StatusEventArgs>(AddError), new[] { sender, e});
         return;
     }
     errorbox.AppendText(e.Status);
     Logger.WriteLine2(e.Status);
 }
Пример #2
0
 private void StatusUpdate(object sender, StatusEventArgs e)
 {
     if (InvokeRequired)
     {
         BeginInvoke(new EventHandler<StatusEventArgs>(StatusUpdate), new[] { sender, e });
         return;
     }
     progressbar.Value = e.Progress;
     statuslabel.Text = e.Status;
 }