void SelectListWithListInfo(ListInfo listInfo) { UISplitViewController splitViewController = SplitViewController; Action <ListViewController> ConfigureListViewController = listViewController => { listViewController.ConfigureWith(listInfo); listViewController.MasterController = this; }; if (splitViewController.Collapsed) { ListViewController listViewController = (ListViewController)Storyboard.InstantiateViewController("listViewController"); ConfigureListViewController(listViewController); ShowViewController(listViewController, this); } else { UINavigationController navigationController = (UINavigationController)Storyboard.InstantiateViewController("listViewNavigationController"); ListViewController listViewController = (ListViewController)navigationController.TopViewController; ConfigureListViewController(listViewController); SplitViewController.ViewControllers = new UIViewController[] { SplitViewController.ViewControllers [0], new UIViewController() }; ShowDetailViewController(navigationController, this); } }
public void ListViewControllerDidDeleteList(ListViewController listViewController) { if (listViewController == null) { throw new ArgumentNullException("listViewController"); } TableView.DeselectRow(TableView.IndexPathForSelectedRow, false); DeleteListAtUrl(listViewController.DocumentURL); }
public void ListViewControllerDidDeleteList (ListViewController listViewController) { if (listViewController == null) throw new ArgumentNullException ("listViewController"); TableView.DeselectRow (TableView.IndexPathForSelectedRow, false); DeleteListAtUrl (listViewController.DocumentURL); }