예제 #1
0
        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;
        }
예제 #2
0
        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;
        }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }