private void OnTaskProgress(string progressText) { TaskProgress?.Invoke(this, new TaskProgressEventArgs() { ProgressText = progressText }); }
/// <summary> /// Progress_s the progress changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The e.</param> void progress_ProgressChanged(object sender, double e) { e = Math.Min(e, 100); CurrentProgress = e; TaskProgress?.Invoke(this, new GenericEventArgs <double> { Argument = e }); }
protected virtual void OnTaskProgress(TaskProgressEventArgs eventargs) { TaskProgress?.Invoke(eventargs); }
private void OnTaskProgress(int progress) => TaskProgress?.Invoke(this, progress);