public AddresscardsTableSource(List <Ycard> cards, AddressbooksController vc)
 {
     addresscards         = cards;
     navigationController = vc.ParentViewController as UINavigationController;
     ab = vc;
     //navigationController = tableview;
 }
예제 #2
0
    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);
    }
예제 #3
0
 public AddressbooksTableSource(List <YAddressbook> books, AddressbooksController ab)
 {
     addressbooks = books;
     this.navigationController = ab.ParentViewController as UINavigationController;
     Console.WriteLine(ab.displayModel);
 }