예제 #1
0
파일: MainForm.cs 프로젝트: pkudrel/Syrup
 public void Execute(LongProcessEndedEvent notification)
 {
     this.Invoke(x =>
     {
         _logUi.Info(notification.Message);
         toolStripLabel.Text        = notification.Message;
         toolStripProgressBar.Style = ProgressBarStyle.Continuous;
         toolStripProgressBar.MarqueeAnimationSpeed = 0;
     });
 }
예제 #2
0
 public Task Handle(LongProcessEndedEvent notification, CancellationToken cancellationToken)
 {
     _form.Execute(notification);
     return(Task.CompletedTask);
 }