public SettlementGeneratorViewModel(StorageHelper storage) { storageHelper = storage; generator = storage.GetSettlementGenerator(); Sizes = new ObservableCollection <string>(generator.GetPossibleSettlementTypes()); Cities = new ObservableCollection <string>(generator.GetPossibleCities()); }
public SettlementGeneratorViewModel(StorageHelper storage) { storageHelper = storage; generator = storage.GetSettlementGenerator(); Sizes = new ObservableCollection <string>(generator.GetPossibleSettlementTypes()); Sizes.Insert(0, "Random"); SelectedSize = Sizes[0]; Cities = new ObservableCollection <string>(generator.GetPossibleCities()); name = "Settlement Generator"; }