private void BroadcastNewProgressTestingClientIdEvent(string message, int progress)
 {
     Fetching.EventHandlers.NewProgressTestingClientIdEventArgs e = new Fetching.EventHandlers.NewProgressTestingClientIdEventArgs();
     e.Message  = message;
     e.Progress = progress;
     OnNewProgressTestingClientId(this, e);
 }
示例#2
0
 private void ClientIdForm_NewProgressTestingClientId(object sender, Fetching.EventHandlers.NewProgressTestingClientIdEventArgs e)
 {
     Instance.Invoke(new Action(() => {
         progressBar.Value = Math.Min(e.Progress, 100);
         infoTextBox.Text  = e.Message;
     }));
 }
 protected virtual void OnNewProgressTestingClientId(object sender, Fetching.EventHandlers.NewProgressTestingClientIdEventArgs e)
 {
     NewProgressTestingClientId?.Invoke(this, e);
 }