private void PowerShell_Progress(object sender, DynamicPowerShellProgressArgs e) { activityProperty.Value = e.Activity; currentOperationProperty.Value = e.CurrentOperation; statusDescriptionProperty.Value = e.StatusDescription; progressProperty.Value = $"{e.PrecentComplete}%, {new TimeSpan(0, 0, 0, e.SecondsRemaining, 0).ToString()} seconds"; }
} // proc Dispose private void PowerShell_Progress(object sender, DynamicPowerShellProgressArgs e) { activityProperty.Value = e.Activity; currentOperationProperty.Value = e.CurrentOperation; statusDescriptionProperty.Value = e.StatusDescription; progressProperty.Value = $"{e.PrecentComplete}%, {new TimeSpan(0, 0, 0, e.SecondsRemaining, 0).ToString()} seconds"; } // event PowerShell_Progress