public VehiclesDetailTableSource(Apparatus Apparatus, UITableView TableView, VehicleDetailController Caller) { CurrentApparatus = Apparatus; DetailItems = new List <UITableViewCell>(); Delegate = TableView; Parent = Caller; BuildTable(); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { //base.RowSelected(tableView, indexPath); VehicleDetailController detailController = (OnDuty.iOS.VehicleDetailController)parent.Storyboard.InstantiateViewController("VehicleDetailController"); detailController.SetVehicle(this, this.TableItems[indexPath.Row]); parent.NavigationController.PushViewController(detailController, true); }