public void ProgressEnd(string message)
 {
     ModellingTool.InvokeIfRequired(() => {
         ModellingTool.lblRichnessStatus.Content = message;
         ModellingTool.progressRichness.Value    = 0;
     });
 }
 public void ProgressMessage(string message, double?percentComplete = null)
 {
     ModellingTool.InvokeIfRequired(() => {
         ModellingTool.lblRichnessStatus.Content = message;
         if (percentComplete.HasValue)
         {
             ModellingTool.progressRichness.Value = percentComplete.Value;
         }
     });
 }
 public void ProgressStart(string message, bool indeterminate = false)
 {
     ModellingTool.InvokeIfRequired(() => {
         ModellingTool.progressRichness.Maximum         = 100;
         ModellingTool.progressRichness.Minimum         = 0;
         ModellingTool.progressRichness.Value           = 0;
         ModellingTool.progressRichness.IsIndeterminate = indeterminate;
         ModellingTool.lblRichnessStatus.Content        = message;
     });
 }