예제 #1
0
 /// <summary>
 /// An event handler called when the progress legend is being set.
 /// </summary>
 /// <param name="object">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnProgressLegendSet(object sender, ProgressLegendSetEventArgs e)
 {
     // If the event is not for the current progress info, do nothing.
     if (e.Progress != this.progress) return;
     // If the old legend is the same as the new legend, do nothing.
     if (e.OldLegend == e.NewLegend) return;
 }
예제 #2
0
 /// <summary>
 /// An event handler called when a new progress legend has been set.
 /// </summary>
 /// <param name="object">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnProgressLegendSet(object sender, ProgressLegendSetEventArgs e)
 {
     // If the progress info is not the current progress info, do nothing.
     if (e.Progress != this.progress) return;
     // Raise the event.
     if (null != this.ProgressLegendSet) this.ProgressLegendSet(this, new ProgressItemLegendSetEventArgs(this, progress, e.OldLegend, e.NewLegend));
 }