private static void NotifyFeatureCommandCollectionExecuted(object sender, NotifyFeatureCommandCollectionExecutedEventArgs e) { var commands = (FeatureCommandsCollection)sender; var currentCommand = commands[e.Index]; Console.WriteLine($@" > Status: {(e.Detail.Result.Success ? "Installed" : "Not Installed")}"); Console.WriteLine($@" > Command: {currentCommand.Command}"); //Console.WriteLine($" > Output: {e.Detail.ProgramResult}"); // uncomment to see the detail Console.WriteLine(); }
private void NotifyFeatureCommandCollectionExecuted(object sender, NotifyFeatureCommandCollectionExecutedEventArgs e) { if (FeaturesProgressBar.InvokeRequired) { var d = new SafeUpdateProgressBarDelegate(UpdateProgressBar); FeatureLabel.Invoke(d); } else { FeaturesProgressBar.Value++; } }
/// <summary> /// Raises the <see cref="NotifyFeatureCommandCollectionExecuted"/> event. /// </summary> /// <param name="e">A <see cref="NotifyFeatureCommandCollectionExecutedEventArgs"/> that contains the event data.</param> private void OnNotifyFeatureCommandCollectionExecuted(NotifyFeatureCommandCollectionExecutedEventArgs e) => NotifyFeatureCommandCollectionExecuted?.Invoke(this, e);
private void NotifyFeatureCommandCollectionExecuted(object sender, NotifyFeatureCommandCollectionExecutedEventArgs e) { FeaturesProgressBar.Value++; }