public Home()
 {
     this.InitializeComponent();
     //MyMap.Center = new Geopoint(new BasicGeoposition() { Latitude = 46.8442643, Longitude = 2.5992004 });
     //MyMap.ZoomLevel = 6;
     apartments = new ObservableCollection <Apartment>();
     myManaApartmentManger.GetAllApartments(apartments);
 }
Пример #2
0
        public MainPage()
        {
            this.InitializeComponent();
            MyFrame.Navigate(typeof(Home));
            BackButton.Visibility = Visibility.Collapsed;
            Title.Margin          = new Thickness(68, 0, 0, 0);

            // Populates the observable collection 'Apartment'
            apartments = new ObservableCollection <Apartment>();
            myApartmentManager.GetAllApartments(apartments);

            var a = (Home)MyFrame.Content;

            if (a != null)
            {
                a.NavigateToResults += OnSearch;
            }
        }
Пример #3
0
        public MostPopular()
        {
            this.InitializeComponent();
            Apartments = new ObservableCollection <Apartment>();
            myApartmentManager.GetAllApartments(Apartments);

            ApartmentRegionSelector = new List <ApartmentRegionSelector>();
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.Alsace
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.Aquitaine
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.Auvergne
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.BasseNormandie
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.Bretagne
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.Bourgogne
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.CentreValDeLoire
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.ChampagneArdenne
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.Corsica
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.FrancheComté
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.HauteNormandie
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.ÎleDeFrance
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.LanguedocRoussillon
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.Limousin
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.Lorraine
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.MidiPyrénées
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.NordPasDeCalais
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.PaysDeLaLoire
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.Picardie
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.PoitouCharentes
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.ProvenceAlpesCôteDAzur
            });
            ApartmentRegionSelector.Add(new ApartmentRegionSelector {
                ApartmentRegion = RegionCategory.RhôneAlpes
            });

            ApartmentCitySelector = new List <ApartmentCitySelector>();
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Ajaccio
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Strasbourg
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Bordeaux
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.ClermontFerrand
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Rennes
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Dijon
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Orléans
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.ChâlonsEnChampagne
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Paris
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Montpellier
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Limoges
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Metz
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Caen
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Tolouse
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Lille
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Nantes
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Amiens
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Poitiers
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Marseille
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Lyon
            });
            ApartmentCitySelector.Add(new ApartmentCitySelector {
                ApartmentCity = CityCategory.Rouen
            });

            ApartmentRoomSelector = new List <ApartmentRoomSelector>();
            ApartmentRoomSelector.Add(new ApartmentRoomSelector {
                ApartmentRoomNumber = RoomCategory.One
            });
            ApartmentRoomSelector.Add(new ApartmentRoomSelector {
                ApartmentRoomNumber = RoomCategory.Two
            });
            ApartmentRoomSelector.Add(new ApartmentRoomSelector {
                ApartmentRoomNumber = RoomCategory.Three
            });
            ApartmentRoomSelector.Add(new ApartmentRoomSelector {
                ApartmentRoomNumber = RoomCategory.Four
            });
            ApartmentRoomSelector.Add(new ApartmentRoomSelector {
                ApartmentRoomNumber = RoomCategory.Five
            });
            ApartmentRoomSelector.Add(new ApartmentRoomSelector {
                ApartmentRoomNumber = RoomCategory.Six
            });
            ApartmentRoomSelector.Add(new ApartmentRoomSelector {
                ApartmentRoomNumber = RoomCategory.Seven
            });
            ApartmentRoomSelector.Add(new ApartmentRoomSelector {
                ApartmentRoomNumber = RoomCategory.Eight
            });
        }
Пример #4
0
 public IEnumerable <Apartment> GetAll()
 {
     return(manager.GetAllApartments());
 }