Exemplo n.º 1
0
 void cancelDelete()
 {
     if (task.ID != 0)
     {
         tasksViewModel.DeleteTask(task.ID);
     }
     Finish();
 }
        partial void DeleteButton_TouchUpInside(UIButton sender)
        {
            if (currentTask != null)
            {
                tasksViewModel.DeleteTask(currentTask.ID);
            }

            // Come back to the previous view
            NavigationController.PopViewController(true);
        }