Exemplo n.º 1
0
 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));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 删除 假删
 /// </summary>
 /// <param name="taskID"></param>
 /// <returns></returns>
 public bool Delete(string taskID)
 {
     return(dao.Delete(taskID));
 }
Exemplo n.º 3
0
 public TaskDTO Excluir(TaskDTO dto)
 {
     return(dao.Delete(dto));
 }