public AddresscardsTableSource(List <Ycard> cards, AddressbooksController vc) { addresscards = cards; navigationController = vc.ParentViewController as UINavigationController; ab = vc; //navigationController = tableview; }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { Console.WriteLine("Row selected" + addressbooks[indexPath.Row].displayname); UIStoryboard Storyboard = UIStoryboard.FromName("Main", null); AddressbooksController newab = Storyboard.InstantiateViewController("AddressbooksViewController") as AddressbooksController; newab.displayModel = "addresscards"; navigationController.PushViewController(newab, true); tableView.DeselectRow(indexPath, true); }
public AddressbooksTableSource(List <YAddressbook> books, AddressbooksController ab) { addressbooks = books; this.navigationController = ab.ParentViewController as UINavigationController; Console.WriteLine(ab.displayModel); }