/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TaskItemComponent_OnDelete(object sender, TaskInfo e) { if (!DeleteHelper.IsAreYouSure()) { return; } JobInfo.DeleteTask(e); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void JobView_OnDelete(object sender, JobInfo e) { if (!DeleteHelper.IsAreYouSure()) { return; } e.Delete(); ViewModel.Jobs.Remove(e); }