Пример #1
0
 public SettlementGeneratorViewModel(StorageHelper storage)
 {
     storageHelper = storage;
     generator     = storage.GetSettlementGenerator();
     Sizes         = new ObservableCollection <string>(generator.GetPossibleSettlementTypes());
     Cities        = new ObservableCollection <string>(generator.GetPossibleCities());
 }
Пример #2
0
 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";
 }