public LocationTypeViewModel(LocationType locationType) { this._mainService = new MainService(); this.LocationTypes = this._mainService.GetLocationTypes(); this.Icons = this._mainService.GetIcons(); this.LocationType = locationType; }
public AreaViewModel(Area area) { this._mainService = new MainService(); this.Area = area; this.Cities = this._mainService.GetCities(); this.Areas = this._mainService.GetAreas(); this.HasChosenCity = false; }
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; }
public LocationController() { this._locationService = new LocationService(); this._mainService = new MainService(); }
public AreaService() { this._mainService = new MainService(); }