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(); } }
private static void NotifyFeatureCommandCollectionExecuting(object sender, NotifyFeatureCommandCollectionExecutingEventArgs e) { Console.WriteLine($@" > Feature: {e.Feature} ({e.Index + 1}/{e.Total})"); }
/// <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);