Ejemplo n.º 1
0
        void CancelCountriesList(object sender, EventArgs e)
        {
            CountriesViewModel cvm = MSProApp.Locator.CountriesVM;

            cvm.CancelSelectedCountriesList();

            DisplayAlert("Mask Surf Pro", AppStrings.CountriesCancelled, AppStrings.OK);
        }
Ejemplo n.º 2
0
        void CancelCountriesList(object sender, EventArgs e)
        {
            CountriesViewModel cvm = MSProApp.Locator.CountriesVM;

            cvm.CancelSelectedCountriesList();

            //clear lists in views
            cvm.SelectedCountriesList.Clear();
            StatusViewModel svm  = MSProApp.Locator.StatusVM;
            CitiesViewModel civm = MSProApp.Locator.CitiesVM;

            if (svm != null)
            {
                svm.SelectedRegionsList.Clear();
            }
            if (civm != null)
            {
                civm.SelectedCitiesList.Clear();
            }
            SelectedCountries.ItemsSource = cvm.SelectedCountriesList;

            DisplayAlert("Mask Surf Pro", AppStrings.CountriesCancelled, AppStrings.OK);
        }