Ejemplo n.º 1
0
 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";
 }
Ejemplo n.º 2
0
        }         // 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