private void Schedule_CellTapped(object sender, Syncfusion.SfSchedule.XForms.CellTappedEventArgs args) { if (_selectionButton != null) { _selectionButton.Clicked -= SelectionButton_Clicked; } _selectionButton = schedule.SelectionView as Button; _selectedDateTime = args.Datetime; if (_selectionButton != null) { if (CC.Device.Platform == Platforms.iOS) { //BUG: Click event not firing on iOS var result = new DateTimeResult { SelectedDate = _selectedDateTime }; Command.Execute(result); } else { _selectionButton.Clicked += SelectionButton_Clicked; } } }
//private async void SendAppointmentBooking() //{ // try // { // await Navigation.PushPopupAsync(new LoadingPopPage()); // _objBookAppointmentResponseModel = await _apiServices.BookAppointmentAsync(new Get_API_Url().BookAppointmentListApi(_baseUrl), true, _objHeaderModel, _objBookAppointmentRequestModel); // var _result = _objBookAppointmentResponseModel.Response; // if(_result.StatusCode==200) // { // await DisplayAlert("Info",_result.Message,"OK"); // await App.NavigationPage.Navigation.PushAsync(new AppointmentPage(), true); // DependencyService.Get<IToast>().ShowToast(_result.Message); // await Navigation.PopAllPopupAsync(); // } // else // { // DependencyService.Get<IToast>().ShowToast(_result.Message); // await Navigation.PopAllPopupAsync(); // } // } // catch (Exception ex) // { // DependencyService.Get<IToast>().ShowToast("Something Went Wrong please try Again or check your Internet Connection!!"); // await Navigation.PopAllPopupAsync(); // var msg = ex.Message; // } //} private async void schedule_CellTapped(object sender, Syncfusion.SfSchedule.XForms.CellTappedEventArgs e) { try { // SendAppointmentBooking(); await Navigation.PushPopupAsync(new BookingConfirmationPage(_objBookAppointmentRequestModel)); } catch (Exception ex) { var msg = ex.Message; } }