示例#1
0
 public DashboardViewModel(Services serviceargs)
 {
     service     = serviceargs;
     Header      = service.ServiceName;
     Definition  = service.Description;
     MicroText   = string.Format("Starts at Php {0}", service.Price);
     ButtonLabel = "Book now";
     SelectTile  = new Command(async() =>
     {
         var appointmentRequest = new AppointmentRequest()
         {
             Service      = service,
             Place        = PlacesModel.PlacesList.FirstOrDefault(),
             Customer     = Customer.Current,
             Payment      = PaymentModel.GetFirstPaymentData(),
             Housekeepers = 1,
             Date         = null,
             Time         = null
         };
         await Application.Current.MainPage.Navigation.PushAsync(new PreBooking(appointmentRequest));
     });
 }