ApProg.UserInterface.Shell.MainWindow.UpdateProgress C# (CSharp) Method

UpdateProgress() public method

public UpdateProgress ( int value, string message ) : void
value int
message string
return void
        public void UpdateProgress(int value, string message)
        {
            if(myProgress == null)
                return;

            Dispatcher.Invoke(DispatcherPriority.Normal, (Action)(() =>
                                           {
                                               myProgress.myProgressBar.Value = value;
                                               myProgress.myMessage.Inlines.Clear();
                                               myProgress.myMessage.Inlines.Add(message);
                                           }));
        }