Beispiel #1
0
        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();
        }
Beispiel #2
0
 private void NotifyFeatureCommandCollectionExecuted(object sender, NotifyFeatureCommandCollectionExecutedEventArgs e)
 {
     if (FeaturesProgressBar.InvokeRequired)
     {
         var d = new SafeUpdateProgressBarDelegate(UpdateProgressBar);
         FeatureLabel.Invoke(d);
     }
     else
     {
         FeaturesProgressBar.Value++;
     }
 }
Beispiel #3
0
 /// <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);
Beispiel #4
0
 private void NotifyFeatureCommandCollectionExecuted(object sender, NotifyFeatureCommandCollectionExecutedEventArgs e)
 {
     FeaturesProgressBar.Value++;
 }