Exemplo n.º 1
0
 public DeleteViewModel(ParkedVehicles pv)
 {
     RegNr       = pv.RegNr;
     VehicleType = pv.VehicleType;
     ParkingTime = pv.ParkingTime;
     PriceSoFar  = Util.GetTotalMinutes(pv.ParkingTime) * 2;
 }
Exemplo n.º 2
0
 public IndexViewModel(ParkedVehicles pv)
 {
     VehicleType = pv.VehicleType;
     Color       = pv.Color;
     ParkingTime = pv.ParkingTime;
     RegNr       = pv.RegNr;
 }
Exemplo n.º 3
0
 public DetailsViewModel(ParkedVehicles pv)
 {
     RegNr       = pv.RegNr;
     Color       = pv.Color;
     Make        = pv.Make;
     Model       = pv.Model;
     NrWheels    = pv.NrWheels;
     ParkingTime = pv.ParkingTime;
     VehicleType = pv.VehicleType;
 }
Exemplo n.º 4
0
 public Receit(ParkedVehicles pv)
 {
     RegNr           = pv.RegNr;
     Color           = pv.Color;
     NrWheels        = pv.NrWheels;
     Make            = pv.Make;
     Model           = pv.Model;
     VehicleType     = pv.VehicleType;
     CheckInTime     = pv.ParkingTime;
     CheckOutTime    = DateTime.Now;
     TotalTimeParked = Util.GetTotalMinutes(pv.ParkingTime);
     Price           = TotalTimeParked * 2;
 }