Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2019
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.72 KB | None | 0 0
  1. <div class="plc-display @CssClass" style="@Style">
  2.     <div class="vertical-center center-content">
  3.         <h2>@Device.DisplayName</h2>
  4.         <table>
  5.             @for (int j = 0; j < Device.PlcVariables.Count / RowSize; j++)
  6.            {
  7.                int startIndex = j * RowSize;
  8.                int calcWidth = 100 / RowSize;
  9.                <tr>
  10.                     @for (int i = startIndex; i < RowSize * (j + 1); i++)
  11.                    {
  12.                        <td style="width:@calcWidth%">
  13.                             <PlcVariableDisplay Variable="@Device.PlcVariables[i]"/>
  14.                         </td>
  15.                     }
  16.                 </tr>
  17.             }
  18.         </table>
  19.     </div>
  20. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement