void Frompicker_CancelButtonClicked(object sender, Syncfusion.SfPicker.XForms.SelectionChangedEventArgs e) { CascadingViewModel viewmodel = this.BindingContext as CascadingViewModel; ObservableCollection <object> departPlace = new ObservableCollection <object>(); //String[] departPlaceArray = fromPlace.Text.Split(','); //string country = departPlaceArray[1].Substring(1); //departPlace.Add(country); //departPlace.Add(departPlaceArray[0]); viewmodel.FromPlace = departPlace; }
void Topicker_CancelButtonClicked(object sender, Syncfusion.SfPicker.XForms.SelectionChangedEventArgs e) { CascadingViewModel viewmodel = this.BindingContext as CascadingViewModel; ObservableCollection <object> arrivePlace = new ObservableCollection <object>(); //String[] arraivePlaceArray = toplace.Text.Split(','); //string country = arraivePlaceArray[1].Substring(1); //arrivePlace.Add(country); //arrivePlace.Add(arraivePlaceArray[0]); viewmodel.ArrivePlace = arrivePlace; }
void Frompicker_OnPopUpOpened(object sender, EventArgs e) { CascadingViewModel viewmodel = this.BindingContext as CascadingViewModel; ObservableCollection <object> departPlace = new ObservableCollection <object>(); //String[] departPlaceArray = fromPlace.Text.Split(','); //string country = departPlaceArray[1].Substring(1); //departPlace.Add(country); //departPlace.Add(departPlaceArray[0]); viewmodel.FromPlace = departPlace; }
void Topicker_OnPopUpOpened(object sender, EventArgs e) { CascadingViewModel viewmodel = this.BindingContext as CascadingViewModel; ObservableCollection <object> arrivePlace = new ObservableCollection <object>(); //String[] arraivePlaceArray = toplace.Text.Split(','); //string country = arraivePlaceArray[1].Substring(1); //arrivePlace.Add(country); //arrivePlace.Add(arraivePlaceArray[0]); viewmodel.ArrivePlace = arrivePlace; }