Example #1
0
        protected virtual void OnTaskCanceled(CommandTaskCancellationEventArgs e)
        {
            var handler = TaskCanceled;

            if (handler != null) {
                handler(this, e);
            }
        }
Example #2
0
 private void CancelTask(object sender, CommandTaskCancellationEventArgs e)
 {
     UpdateProgress(1);
 }