/// <summary> /// An event handler called when the progress legend has changed. /// </summary> /// <param name="object">The sender object.</param> /// <param name="e">The event arguments.</param> private void OnProgressLegendChanged(object sender, ProgressLegendChangedEventArgs e) { }
/// <summary> /// An event handler called when the progress legend has changed. /// </summary> /// <param name="object">The sender object.</param> /// <param name="e">The event arguments.</param> private void OnProgressLegendChanged(object sender, ProgressLegendChangedEventArgs 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.ProgressLegendChanged) this.ProgressLegendChanged(this, new ProgressItemLegendChangedEventArgs(this, e.Progress, e.Legend)); }