示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }