Exemplo n.º 1
0
 public CalculateFuelCostViewModel()
 {
     Products = new EnumSelectList <ProductTypeEnum>(x => x.ToHumanReadable(), includeSelect: true);
     Regions  = new CustomSelectList()
                .AddSelect()
                .AddItems(Persistent.Regions.GetAll(), r => r.ID, r => r.Name);
 }
Exemplo n.º 2
0
 public CalculateProductionPointsViewModel()
 {
     Products          = new EnumSelectList <ProductTypeEnum>(x => x.ToHumanReadable().FirstUpper(), includeSelect: true);
     ResourceQualities = new EnumSelectList <ResourceFertilityEnum>(x => x.ToHumanReadable().FirstUpper(), includeSelect: true);
 }