private void provisioner_OnUpdateStatus(object sender, ProgressEventArgs e)
 {
     _dispatcher.Invoke(
         () =>
         {
             MessageLog.AppendText(e.Status);
             MessageLog.AppendText(Environment.NewLine);
             MessageLog.ScrollToEnd();
         });
 }
        void provisioner_OnProvisionComplete(object sender, ProgressEventArgs e)
        {
            _dispatcher.Invoke(
                () =>
                {
                    MessageLog.AppendText(e.Status);
                    MessageLog.AppendText(Environment.NewLine);
                    MessageLog.ScrollToEnd();

                    Provision.IsEnabled = true;
                });
        }
        private void UpdateStatus(string status)
        {
            if (OnUpdateStatus == null) return;

            ProgressEventArgs args = new ProgressEventArgs(status);
            OnUpdateStatus(this, args);
        }
        private void NotifyComplete(string status)
        {
            if (OnProvisionComplete == null) return;

            ProgressEventArgs args = new ProgressEventArgs(status);
            OnProvisionComplete(this, args);
        }