private async void AddSubEventPage(EventView view, string subEventTitle) { using (UserDialogs.Instance.Loading("loading")) { await Task.Delay(1); ContentStackLayout.Children.Clear(); var view2 = new SubEventsView(subEventTitle); await view2.ListViewAttemp(); ContentStackLayout.Children.Add(view2); } }
private async void AlertAndNewEvents(SubEventsView view, List <string> listOfAppointmentCredentials) { var answer = await DisplayAlert("onecommunity.com says:", $"Are you sure you want to make an appointment for {listOfAppointmentCredentials[0]} at {listOfAppointmentCredentials[1]}", "OK", "Cancel"); if (!answer) { return; } await ApiService.Instance.GetDataFromServerTask <AppointmentMobileRequestModel, AppointmentMobileResponseModel>(new AppointmentMobileRequestModel() { ScreeningSubperiodId = listOfAppointmentCredentials[2], ProgramId = AppSettingHelper.ProgramId, ParticipantId = AppSettingHelper.ParticipantId }, ApiConstants.AddAppointmentUrl); await GetEventView(); }