Example #1
0
        private void NotifyFeatureCommandCollectionExecuting(object sender, NotifyFeatureCommandCollectionExecutingEventArgs e)
        {
            string featureDataText = $"{e.Feature} ({e.Index + 1}/{e.Total})";

            if (FeatureLabel.InvokeRequired)
            {
                var d = new SafeUpdateFeatureLabelDelegate(UpdateFeatureLabel);
                FeatureLabel.Invoke(d, featureDataText);
            }
            else
            {
                FeatureLabel.Text = $@"Feature: {featureDataText}";
                FeatureLabel.Refresh();
            }
        }
Example #2
0
 private static void NotifyFeatureCommandCollectionExecuting(object sender, NotifyFeatureCommandCollectionExecutingEventArgs e)
 {
     Console.WriteLine($@"    > Feature: {e.Feature} ({e.Index + 1}/{e.Total})");
 }
Example #3
0
 /// <summary>
 /// Raises the <see cref="NotifyFeatureCommandCollectionExecuting"/> event.
 /// </summary>
 /// <param name="e">A <see cref="NotifyFeatureCommandCollectionExecutingEventArgs"/> that contains the event data.</param>
 private void OnNotifyFeatureCommandCollectionExecuting(NotifyFeatureCommandCollectionExecutingEventArgs e) => NotifyFeatureCommandCollectionExecuting?.Invoke(this, e);