예제 #1
0
 public void DeleteTask()
 {
     if (currentItem.ID >= 0)
     {
         TodoItemManager.DeleteTask(currentItem.ID);
     }
     NavigationController.PopViewController(true);
 }
예제 #2
0
 public void DeleteTaskRow(int rowId)
 {
     using (var transaction = TodoItemManager.BeginTransaction())
     {
         TodoItemManager.DeleteTask(tasks [rowId].ID);
         transaction.Commit();
     }
 }
예제 #3
0
 void CancelDelete()
 {
     if (task.ID != 0)
     {
         TodoItemManager.DeleteTask(task.ID);
     }
     Finish();
 }
예제 #4
0
 void CancelDelete()
 {
     if (task.ID != null)
     {
         TodoItemManager.DeleteTask(task.ID);
     }
     transaction.Commit();
     Finish();
 }
예제 #5
0
 public void DeleteTask()
 {
     if (currentItem != null)
     {
         TodoItemManager.DeleteTask(currentItem.ID);
     }
     NavigationController.PopViewController(true);
     transaction.Commit();
 }
예제 #6
0
 public void DeleteTaskRow(int rowId)
 {
     TodoItemManager.DeleteTask(tasks[rowId].ID);
 }