|
@@ -10,10 +10,45 @@
|
|
|
</UserControl.DataContext>
|
|
</UserControl.DataContext>
|
|
|
|
|
|
|
|
<Border Background="{DynamicResource AppBgBrush}">
|
|
<Border Background="{DynamicResource AppBgBrush}">
|
|
|
- <Grid RowDefinitions="*,32">
|
|
|
|
|
|
|
+ <Grid RowDefinitions="48,*,32">
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 鈺愨晲鈺 椤堕儴鏍囬鏍 鈺愨晲鈺 -->
|
|
|
|
|
+ <Border Grid.Row="0" Background="{DynamicResource SurfaceBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1">
|
|
|
|
|
+ <Grid ColumnDefinitions="Auto,*,Auto,Auto,Auto" Margin="16,0">
|
|
|
|
|
+ <StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="12" VerticalAlignment="Center">
|
|
|
|
|
+ <Border Background="{DynamicResource SuccessBrush}" Width="4" Height="24" CornerRadius="2"/>
|
|
|
|
|
+ <TextBlock Text="YZ WATER" FontSize="16" FontWeight="Bold"
|
|
|
|
|
+ Foreground="{DynamicResource TextPrimaryBrush}" FontFamily="Consolas, monospace"
|
|
|
|
|
+ VerticalAlignment="Center"/>
|
|
|
|
|
+ <TextBlock Text="姹℃按澶勭悊鐩戞帶绯荤粺" FontSize="12"
|
|
|
|
|
+ Foreground="{DynamicResource TextTertiaryBrush}" VerticalAlignment="Center"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="8" VerticalAlignment="Center" Margin="24,0">
|
|
|
|
|
+ <Border Width="10" Height="10" CornerRadius="5" Background="{DynamicResource SuccessBrush}"/>
|
|
|
|
|
+ <TextBlock Text="PLC CONNECTED" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
+ Foreground="{DynamicResource SuccessBrush}" VerticalAlignment="Center"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <StackPanel Grid.Column="3" Orientation="Horizontal" Spacing="4" VerticalAlignment="Center" Margin="16,0">
|
|
|
|
|
+ <Button Content="CONNECT" Command="{Binding ConnectPlcCommand}" Classes="btn-success" Padding="8,3" FontSize="10"/>
|
|
|
|
|
+ <Button Content="DISCONNECT" Command="{Binding DisconnectPlcCommand}" Classes="btn-danger" Padding="8,3" FontSize="10"/>
|
|
|
|
|
+ <Button Content="REFRESH" Command="{Binding RefreshDataCommand}" Classes="btn-info" Padding="8,3" FontSize="10"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <StackPanel Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
|
|
|
+ <TextBlock Text="{Binding CurrentTime, StringFormat='{}{0:HH:mm:ss}'}"
|
|
|
|
|
+ FontFamily="Consolas, monospace" FontSize="16" FontWeight="Bold"
|
|
|
|
|
+ Foreground="{DynamicResource SuccessBrush}"/>
|
|
|
|
|
+ <TextBlock Text="{Binding CurrentTime, StringFormat='{}{0:yyyy-MM-dd}'}"
|
|
|
|
|
+ FontFamily="Consolas, monospace" FontSize="10"
|
|
|
|
|
+ Foreground="{DynamicResource TextDisabledBrush}" HorizontalAlignment="Right"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Border>
|
|
|
|
|
|
|
|
<!-- 鈺愨晲鈺 涓诲唴瀹瑰尯 鈺愨晲鈺 -->
|
|
<!-- 鈺愨晲鈺 涓诲唴瀹瑰尯 鈺愨晲鈺 -->
|
|
|
- <Grid Grid.Row="0" ColumnDefinitions="*,260" Margin="8,4">
|
|
|
|
|
|
|
+ <Grid Grid.Row="1" ColumnDefinitions="*,260" Margin="8,4">
|
|
|
|
|
|
|
|
<!-- 宸︿晶锛氬伐鑹烘祦绋嬪浘 -->
|
|
<!-- 宸︿晶锛氬伐鑹烘祦绋嬪浘 -->
|
|
|
<Border Grid.Column="0" Background="{DynamicResource SurfaceBgBrush}" CornerRadius="2" Margin="0,0,4,0"
|
|
<Border Grid.Column="0" Background="{DynamicResource SurfaceBgBrush}" CornerRadius="2" Margin="0,0,4,0"
|
|
@@ -365,7 +400,7 @@
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
|
|
<!-- 鈺愨晲鈺 搴曢儴鐘舵佹爮 鈺愨晲鈺 -->
|
|
<!-- 鈺愨晲鈺 搴曢儴鐘舵佹爮 鈺愨晲鈺 -->
|
|
|
- <Border Grid.Row="1" Background="{DynamicResource SurfaceBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,1,0,0">
|
|
|
|
|
|
|
+ <Border Grid.Row="2" Background="{DynamicResource SurfaceBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,1,0,0">
|
|
|
<Grid ColumnDefinitions="Auto,*,Auto,Auto,Auto,Auto" Margin="16,0">
|
|
<Grid ColumnDefinitions="Auto,*,Auto,Auto,Auto,Auto" Margin="16,0">
|
|
|
<TextBlock Grid.Column="0" VerticalAlignment="Center"
|
|
<TextBlock Grid.Column="0" VerticalAlignment="Center"
|
|
|
FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource TextDisabledBrush}">
|
|
FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource TextDisabledBrush}">
|