You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
785 B
22 lines
785 B
<MudDataGrid T="EntityProductionModel" Items="@data" |
|
SortMode="SortMode.Multiple" |
|
Filterable="true" |
|
Hideable="true"> |
|
<Columns> |
|
<PropertyColumn Property="x => x.Parent.GetName()" Title="Entity"/> |
|
<PropertyColumn Property="x => x.Alloy"/> |
|
<PropertyColumn Property="x => x.BuildTime"/> |
|
<PropertyColumn Property="x => x.Ether"/> |
|
<PropertyColumn Property="x => x.Parent.GetFaction()" Title="Faction"/> |
|
<PropertyColumn Property="x => x.Parent.GetImmortal()" Title="Immortal"/> |
|
</Columns> |
|
</MudDataGrid> |
|
|
|
@code { |
|
|
|
readonly IEnumerable<EntityProductionModel> data = EntityData.Get() |
|
.SelectMany(e => e.Value.EntityParts) |
|
.OfType<EntityProductionModel>() |
|
.ToList(); |
|
|
|
} |