Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="plc-display @CssClass" style="@Style">
- <div class="vertical-center center-content">
- <h2>@Device.DisplayName</h2>
- <table>
- @for (int j = 0; j < Device.PlcVariables.Count / RowSize; j++)
- {
- int startIndex = j * RowSize;
- int calcWidth = 100 / RowSize;
- <tr>
- @for (int i = startIndex; i < RowSize * (j + 1); i++)
- {
- <td style="width:@calcWidth%">
- <PlcVariableDisplay Variable="@Device.PlcVariables[i]"/>
- </td>
- }
- </tr>
- }
- </table>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement