protected virtual void OnTaskCanceled(CommandTaskCancellationEventArgs e) { var handler = TaskCanceled; if (handler != null) { handler(this, e); } }
private void CancelTask(object sender, CommandTaskCancellationEventArgs e) { UpdateProgress(1); }