Esempio n. 1
0
        public Cities0ViewModel()
        {
            int a = 0;

            startPointCityDistrictModel        = CurrentTeleportSearchedCityDistrictModels.StartPointTeleportSearchedCityDistrictModel;
            destinationtPointCityDistrictModel = CurrentTeleportSearchedCityDistrictModels.DestinationPointTeleportSearchedCityDistrictModel;

            iteleportDistrictCountryServices = new TeleportDistrictCountryWebApi();

            InitCountryInfo();
        }
Esempio n. 2
0
        public Cities1ViewModel()
        {
            teleportDestination_sCategoriesScoresService = new TeleportDestination_sCategoriesDetailsImagesServiceWebApi();
            destinationtSearchedCityDistrictModel        = CurrentTeleportSearchedCityDistrictModels.DestinationPointTeleportSearchedCityDistrictModel;
            DestinationtPointFullName = destinationtSearchedCityDistrictModel.FullName;

            ObservableCategoryTypes = new ObservableCollection <TeleportSearchedCityDistrictCategoriesModel>(
                teleportDestination_sCategoriesScoresService.GetTeleportSearchedCityDistrictCategoryModels(
                    destinationtSearchedCityDistrictModel.UrbanAreaDetailsLink));


            TeleportSearchedCityDistrictScoresInfo teleportSearchedCityDistrictScoresInfo = teleportDestination_sCategoriesScoresService.GetSearchedCityDistrictScoresInfo(destinationtSearchedCityDistrictModel.UrbanAreaScoresLink);

            DestinationtPointDescription = teleportSearchedCityDistrictScoresInfo.Summary;
            observableScoresToStore      = new ObservableCollection <TeleportSearchedCityDistrictScore>(teleportSearchedCityDistrictScoresInfo.TeleportSearchedCityDistrictScores);
            ObservableScores             = new ObservableCollection <TeleportSearchedCityDistrictScore>(observableScoresToStore);
        }
Esempio n. 3
0
        public Cities2ViewModel()
        {
            SelectedDepartmentDate = DateTime.Now;
            SelectedArrivalDate    = DateTime.Now;
            TripAimDescription     = "";

            iTeleportDestination_SCategoriesScoresImagesService = new TeleportDestination_sCategoriesDetailsImagesServiceWebApi();
            destinationtSearchedCityDistrictModel = CurrentTeleportSearchedCityDistrictModels.DestinationPointTeleportSearchedCityDistrictModel;

            DestinationPointName = destinationtSearchedCityDistrictModel.FullName;

            BitmapImage bitmapImage = iTeleportDestination_SCategoriesScoresImagesService.GetSearchedCityImage(destinationtSearchedCityDistrictModel.UrbanAreaImagesLink);

            if (bitmapImage != null)
            {
                DestinationImageSource = bitmapImage;
            }

            iUserService         = new UserServiceLocalMSSQLDB();
            iTripEntitiesService = new TripEntitiesLocalMSSQLDB();
        }