public void DeleteTask() { if (currentItem.ID >= 0) { TodoItemManager.DeleteTask(currentItem.ID); } NavigationController.PopViewController(true); }
public void DeleteTaskRow(int rowId) { using (var transaction = TodoItemManager.BeginTransaction()) { TodoItemManager.DeleteTask(tasks [rowId].ID); transaction.Commit(); } }
void CancelDelete() { if (task.ID != 0) { TodoItemManager.DeleteTask(task.ID); } Finish(); }
void CancelDelete() { if (task.ID != null) { TodoItemManager.DeleteTask(task.ID); } transaction.Commit(); Finish(); }
public void DeleteTask() { if (currentItem != null) { TodoItemManager.DeleteTask(currentItem.ID); } NavigationController.PopViewController(true); transaction.Commit(); }
public void DeleteTaskRow(int rowId) { TodoItemManager.DeleteTask(tasks[rowId].ID); }