/// <summary>
 /// Handler for EstimationChanged event from one of subtasks.
 /// </summary>
 /// <param name="sender">Task that sent the event.</param>
 /// <param name="args">Event arguments.</param>
 private void OnEstimationChanged(object sender, EstimationChangedEventArgs args) => this.UpdateEstimation();
示例#2
0
 /// <summary>
 /// Handler for CurrentOperationEstimationChanged event from one of subdownloaders.
 /// </summary>
 /// <param name="sender">Downloader that sent the event.</param>
 /// <param name="args">Event arguments.</param>
 private void OnCurrentOperationEstimationChanged(object sender, EstimationChangedEventArgs args)
 => this.EmitCurrentOperationEstimationChanged(args.Task, args.Estimation);