private void NotifyFeatureCommandCollectionExecuting(object sender, NotifyFeatureCommandCollectionExecutingEventArgs e) { string featureDataText = $"{e.Feature} ({e.Index + 1}/{e.Total})"; FeatureLabel.Text = $@"Feature: {featureDataText}"; FeatureLabel.Refresh(); }
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 void UpdateFeatureLabel(string text) { FeatureLabel.Text = text; FeatureLabel.Refresh(); }