Ejemplo n.º 1
0
 public void Execute(LongProcessNotifiedEvent notification)
 {
     this.Invoke(x =>
     {
         _logUi.Info(notification.Message);
         toolStripLabel.Text = notification.Message;
         if (notification.Progress > 0 && notification.Progress < 100)
         {
             toolStripProgressBar.MarqueeAnimationSpeed = notification.Progress;
         }
     });
 }
Ejemplo n.º 2
0
 public Task Handle(LongProcessNotifiedEvent notification, CancellationToken cancellationToken)
 {
     _form.Execute(notification);
     return(Task.CompletedTask);
 }