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

            FeatureLabel.Text = $@"Feature: {featureDataText}";
            FeatureLabel.Refresh();
        }
Beispiel #2
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();
            }
        }
Beispiel #3
0
 private void UpdateFeatureLabel(string text)
 {
     FeatureLabel.Text = text;
     FeatureLabel.Refresh();
 }