예제 #1
0
 public CommentPage(Data.Model.Vehicle clicked_item)
 {
     InitializeComponent();
     BindingContext = model = new CommentViewModel
     {
         vehicle = clicked_item
     };
 }
 private static Vehicle Map(Data.Model.Vehicle vehicle)
 => new Vehicle
 {
     RegistrationNumber = vehicle.RegNo,
     Manufacturer       = vehicle.Make,
     Make      = vehicle.Make,
     Model     = vehicle.Model,
     MOTExpiry = vehicle.MOTExpiry
 };
예제 #3
0
        public VehicleDetailPage(Data.Model.Vehicle item)
        {
            InitializeComponent();
            NavigationPage.SetHasBackButton(this, true);

            BindingContext = model = new VehicleDetailsViewModel
            {
                vehicle = item
            };
        }
        public RatingPage(Data.Model.Vehicle clicked_vehicle)
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, true);
            NavigationPage.SetHasBackButton(this, true);

            BindingContext = model = new RatingViewModel
            {
                vehicle = clicked_vehicle
            };
        }
        public BookingVehicle(Data.Model.Vehicle vehicle)
        {
            InitializeComponent();

            BindingContext = model = new BookingVehicleViewModel
            {
                Vehicle = vehicle
            };

            NavigationPage.SetHasBackButton(this, true);
        }