Example #1
0
 /// <summary>
 /// Allows to set a progress message
 /// </summary>
 /// <param name="value">Progress value</param>
 /// /// <param name="maximum">Progress maximum</param>
 public void SetProgress(int value, int maximum)
 {
     try
     {
         _progressValueSetter?.Invoke(value, maximum, _progressInfo.FormatInvariant(value, maximum));
     }
     catch { }
 }
Example #2
0
 public void SetProgress(string message)
 {
     if (ProgressValueSetter != null && message.HasValue())
     {
         try
         {
             ProgressValueSetter.Invoke(0, 0, message);
         }
         catch { }
     }
 }