Exemplo n.º 1
0
 public LocationTypeViewModel(LocationType locationType)
 {
     this._mainService = new MainService();
     this.LocationTypes = this._mainService.GetLocationTypes();
     this.Icons = this._mainService.GetIcons();
     this.LocationType = locationType;
 }
Exemplo n.º 2
0
 public AreaViewModel(Area area)
 {
     this._mainService = new MainService();
     this.Area = area;
     this.Cities = this._mainService.GetCities();
     this.Areas = this._mainService.GetAreas();
     this.HasChosenCity = false;
 }
Exemplo n.º 3
0
        public LocationViewModel(Location location)
        {
            this._mainService = new MainService();

            this.SearchResult = null;
            this.SearchTerm = "";
            this.AreaTerm = "";
            this.Location = location;

            this.Cities = this._mainService.GetCities();

            this.Areas = this._mainService.GetAreas();
            this.LocationTypes = this._mainService.GetLocationTypes();
 
            this.FloorNumbers = new List<int>();
            for (int i = -1; i < 10; ++i)
                FloorNumbers.Add(i + 1);

            this.HasChosenCity = false;
            this.HasChosenArea = false;
            this.TriedToAddPlace = false;
        }
Exemplo n.º 4
0
 public LocationController()
 {
     this._locationService = new LocationService();
     this._mainService = new MainService();
 }
Exemplo n.º 5
0
 public AreaService()
 {
     this._mainService = new MainService();
 }