private void SelectDate(object sender, EventArgs args)
 {
     InvisibleDatePicker.Focus();
     InvisibleDatePicker.DateSelected += (sen, e) =>
     {
         appointmentRequest.Date = e.NewDate.ToString("yyyy-MM-dd");
         SelectedDate.Text       = appointmentRequest.Date;
     };
 }
        public PreBooking(AppointmentRequest appointmentargs)
        {
            InitializeComponent();

            float.TryParse(appointmentargs.Service.Price, out price);
            ServiceDescription.Text = appointmentargs.Service.ServiceName;

            if (PlacesModel.PlacesList.Count != 0)
            {
                SelectedLocation.Text = appointmentargs.Place.PlaceDetail;
            }
            else
            {
                SelectedLocation.Text = "No places available";
            }


            SelectedPayment.Text  = appointmentargs.Payment.PaymentDetail;
            SelectedTime.Text     = "Pick a time";
            SelectedDate.Text     = "Pick a date";
            AreaStepper.IsVisible = false;
            HousekeeperCount.Text = appointmentargs.Housekeepers.ToString();
            Sub.IsEnabled         = false;
            Sub.BorderColor       = SubSymbol.TextColor = Color.LightGray;
            Add.IsEnabled         = true;

            InvisibleDatePicker.SetValue(DatePicker.MinimumDateProperty, System.DateTime.Today.AddDays(7));
            InvisibleDatePicker.SetValue(DatePicker.MaximumDateProperty, System.DateTime.Today.AddDays(7).AddMonths(3));
            appointmentRequest = appointmentargs;

            if (appointmentRequest.Service.ServiceName.Contains("Commercial"))
            {
                appointmentRequest.Area      = 50;
                AreaCount.Text               = appointmentRequest.Area.ToString();
                HousekeeperStepper.IsVisible = false;
                AreaStepper.IsVisible        = true;
                appointmentRequest.Area      = 50;
                SubArea.BorderColor          = SubSymbolArea.TextColor = Color.LightGray;
            }
            ServicePrice.Text = this.SubDetails;
            Title             = "Set your booking details";
        }