Exemplo n.º 1
0
        public override void WillActivate()
        {
            // This method is called when the watch view controller is about to be visible to the user.
            Console.WriteLine("{0} will activate", this);

            this.Vehicles = Vehicle.GetVehicles();

            /// Setup Table in Controller.
            this.vehicleTable.SetNumberOfRows(this.Vehicles.Length, "vehicleController");

            for (int i = 0; i < this.Vehicles.Length; i++)
            {
                var vehicleRow = (VehicleRowController)this.vehicleTable.GetRowController(i);
                vehicleRow.Update(this.Vehicles [i]);
            }
        }
Exemplo n.º 2
0
 public override void Awake(NSObject context)
 {
     base.Awake(context);
     this._Vehicle = Vehicle.GetVehicles().First(x => x.VIN == (string)(NSString)context);
 }