private void ButtonDeleteTask_Click(object sender, RoutedEventArgs e) { try { if (taskDAO.Delete(task.Id)) { this.Close(); ((StackPanel)taskElement.Parent).Children.Remove(taskElement); } } catch (Exception exception) { utilities.GetNotifier().ShowError(utilities.HandleException(exception)); } }
/// <summary> /// 删除 假删 /// </summary> /// <param name="taskID"></param> /// <returns></returns> public bool Delete(string taskID) { return(dao.Delete(taskID)); }
public TaskDTO Excluir(TaskDTO dto) { return(dao.Delete(dto)); }