47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
@using RobotNet.VDA5050.State
|
|
|
|
<MudPaper Class="pa-4" Elevation="2">
|
|
<MudText Typo="Typo.h6" Class="mb-3">Header Information</MudText>
|
|
@if (State != null)
|
|
{
|
|
<MudSimpleTable Elevation="0">
|
|
<tbody>
|
|
<tr>
|
|
<td><strong>Header ID:</strong></td>
|
|
<td>@State.HeaderId</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Timestamp:</strong></td>
|
|
<td>@State.Timestamp.ToString("g")</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Version:</strong></td>
|
|
<td>@State.Version</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Manufacturer:</strong></td>
|
|
<td>@State.Manufacturer</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Serial Number:</strong></td>
|
|
<td>@State.SerialNumber</td>
|
|
</tr>
|
|
</tbody>
|
|
</MudSimpleTable>
|
|
}
|
|
else
|
|
{
|
|
<MudText Typo="Typo.body2" Align="Align.Center">No state data available</MudText>
|
|
}
|
|
</MudPaper>
|
|
|
|
@code {
|
|
public StateMsg? State { get; set; }
|
|
|
|
public void Update(StateMsg? state)
|
|
{
|
|
State = state;
|
|
StateHasChanged();
|
|
}
|
|
}
|