private void NavigateToEditToDoController(object sender, EventArgs e) { var toDoEditViewController = new ToDoEditViewController(0); toDoEditViewController.SetRepository(Repository); NavigationController.PushViewController(toDoEditViewController, true); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { var toDo = ToDoModels.ElementAt(indexPath.Row); var toDoEditViewController = new ToDoEditViewController(toDo.Id); toDoEditViewController.SetRepository(_controller.Repository); _controller.NavigationController.PushViewController(toDoEditViewController, true); }