|
|
@@ -31,66 +31,81 @@
|
|
|
<GradientStop Color="#FF004D55"/>
|
|
|
</LinearGradientBrush>
|
|
|
</Grid.Background>
|
|
|
- <TextBlock Text="{Binding SwVersion, FallbackValue=VCS.1.001}" Margin="10,0,0,0" Background="{x:Null}" FontSize="15" Foreground="Gray" VerticalAlignment="Top" HorizontalAlignment="Left"/>
|
|
|
- <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
- <TextBlock Style="{StaticResource MaterialDesignHeadline3TextBlock}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontSize="60" FontWeight="Bold">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="2*"/>
|
|
|
+ <ColumnDefinition Width="1*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <TextBlock Text="{Binding SwVersion, FallbackValue=VCS.1.001}" Margin="10,0,0,0" Background="{x:Null}" FontSize="15" Foreground="Gray" VerticalAlignment="Top" HorizontalAlignment="Left"/>
|
|
|
+ <StackPanel Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
|
+ <TextBlock Style="{StaticResource MaterialDesignHeadline3TextBlock}" HorizontalAlignment="Right" VerticalAlignment="Center" Foreground="White" FontSize="60" FontWeight="Bold">
|
|
|
Vehicle Control System
|
|
|
- </TextBlock>
|
|
|
- </StackPanel>
|
|
|
+ </TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <StackPanel Grid.Column="1" Orientation="Vertical" HorizontalAlignment="Right" Width="200" Margin="0,0,0,0" Height="70">
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" >
|
|
|
+ <materialDesign:PackIcon Kind="Chip" Margin="0,0,0,0" Height="36" Width="36" RenderTransformOrigin="-1.972,1.347" HorizontalAlignment="Left" Foreground="White"/>
|
|
|
+ <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Foreground="White">CPU</TextBlock>
|
|
|
+ <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Margin="10,0,0,0" Foreground="White" Text="{Binding CPU, StringFormat={}{0:0.0} %, FallbackValue=0%}"/>
|
|
|
+ </StackPanel>
|
|
|
|
|
|
- <StackPanel Orientation="Vertical" HorizontalAlignment="Right" Width="200" Margin="0,0,300,0" Height="70">
|
|
|
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" >
|
|
|
- <materialDesign:PackIcon Kind="Chip" Margin="0,0,0,0" Height="36" Width="36" RenderTransformOrigin="-1.972,1.347" HorizontalAlignment="Left" Foreground="White"/>
|
|
|
- <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Foreground="White">CPU</TextBlock>
|
|
|
- <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Margin="10,0,0,0" Foreground="White" Text="{Binding CPU, StringFormat={}{0:0.0} %, FallbackValue=0%}"/>
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" >
|
|
|
+ <materialDesign:PackIcon Kind="Memory" Margin="0,0,0,0" Height="36" Width="36" RenderTransformOrigin="-1.972,1.347" HorizontalAlignment="Left" Foreground="White"/>
|
|
|
+ <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Foreground="White" >Memory</TextBlock>
|
|
|
+ <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Margin="10,0,0,0" Foreground="White" Text="{Binding RAM, StringFormat={}{0:0.0} %, FallbackValue=0%}"/>
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
|
|
|
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" >
|
|
|
- <materialDesign:PackIcon Kind="Memory" Margin="0,0,0,0" Height="36" Width="36" RenderTransformOrigin="-1.972,1.347" HorizontalAlignment="Left" Foreground="White"/>
|
|
|
- <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Foreground="White" >Memory</TextBlock>
|
|
|
- <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Margin="10,0,0,0" Foreground="White" Text="{Binding RAM, StringFormat={}{0:0.0} %, FallbackValue=0%}"/>
|
|
|
+ <StackPanel Grid.Column="2" Orientation="Vertical" HorizontalAlignment="Right" Width="100" Margin="0,0,270,0" Height="70">
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" >
|
|
|
+ <materialDesign:PackIcon Kind="CarConnected" Margin="0,0,0,0" Height="36" Width="36" RenderTransformOrigin="-1.972,1.347" HorizontalAlignment="Left" Foreground="{c:Binding 'IsDriveConnected ? media:Brushes.LimeGreen : media:Brushes.Red'}"/>
|
|
|
+ <TextBlock Margin="5,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Foreground="White">Drive</TextBlock>
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
- </StackPanel>
|
|
|
|
|
|
- <StackPanel Margin="0,0,50,0" Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
|
- <Button Margin="1" HorizontalAlignment="Left" Height="40" BorderBrush="Gray" BorderThickness="0" Background="{x:Null}">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="AccessPointNetworkOff" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" Height="35" Width="auto" Foreground="Red"
|
|
|
+ <StackPanel Grid.Column="2" Margin="0,0,10,0" Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
|
+ <Button Margin="1" HorizontalAlignment="Left" Height="40" BorderBrush="Gray" BorderThickness="0" Background="{x:Null}">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="AccessPointNetworkOff" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" Height="35" Width="auto" Foreground="Red"
|
|
|
Visibility="{c:Binding 'OcsState == OHVCommonShareds:eOcsState.DisConnect'}"/>
|
|
|
- <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="AccessPointNetwork" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" Height="35" Width="auto" Foreground="LimeGreen"
|
|
|
+ <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="AccessPointNetwork" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" Height="35" Width="auto" Foreground="LimeGreen"
|
|
|
Visibility="{c:Binding 'OcsState == OHVCommonShareds:eOcsState.Connect'}"/>
|
|
|
- <TextBlock Margin="2" Text="OCS" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20"/>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
+ <TextBlock Margin="2" Text="OCS" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
|
|
|
- <Button Margin="1" HorizontalAlignment="Center" Height="40" BorderBrush="{DynamicResource PrimaryHueMidBrush}" BorderThickness="1" Background="{x:Null}"
|
|
|
+ <Button Margin="1" HorizontalAlignment="Center" Height="40" BorderBrush="{DynamicResource PrimaryHueMidBrush}" BorderThickness="1" Background="{x:Null}"
|
|
|
HorizontalContentAlignment="Left" Command="{Binding BatteryPopup}">
|
|
|
<StackPanel Orientation="Horizontal" Margin="3,0,0,0">
|
|
|
- <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="BatteryOff" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" Height="30" Width="AUto" Foreground="Red"
|
|
|
+ <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="BatteryOff" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" Height="30" Width="AUto" Foreground="Red"
|
|
|
Visibility="{c:Binding 'BatteryState == local:eBatteryState.DisConnect'}"/>
|
|
|
|
|
|
- <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="BatteryCharging" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" Height="30" Width="auto" Foreground="Blue"
|
|
|
+ <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="BatteryCharging" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" Height="30" Width="auto" Foreground="Blue"
|
|
|
Visibility="{c:Binding 'BatteryState == local:eBatteryState.Charge'}"/>
|
|
|
|
|
|
- <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="Battery" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" Height="30" Width="auto" Foreground="LimeGreen"
|
|
|
+ <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="Battery" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" Height="30" Width="auto" Foreground="LimeGreen"
|
|
|
Visibility="{c:Binding 'BatteryState == local:eBatteryState.Connect'}"/>
|
|
|
- <TextBlock Margin="2" Text="{Binding BatteryConnect, FallbackValue=Battery - }" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20"/>
|
|
|
- <TextBlock Margin="2" Text="{Binding SOC, StringFormat={}{0}%, FallbackValue=0%}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20"/>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- </StackPanel>
|
|
|
-
|
|
|
- <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="FileDocumentBoxOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto" Foreground="White"/>
|
|
|
- <TextBlock TextAlignment="Left" VerticalAlignment="Center" Foreground="White" FontSize="20" Margin="10,0,0,0">ID : </TextBlock>
|
|
|
- <TextBlock Text="{Binding VehicleID, FallbackValue=OHV001}" TextAlignment="Left" VerticalAlignment="Center" Foreground="White" FontSize="20" Margin="10,0,0,0"/>
|
|
|
+ <TextBlock Margin="2" Text="{Binding BatteryConnect, FallbackValue=Battery - }" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20"/>
|
|
|
+ <TextBlock Margin="2" Text="{Binding SOC, StringFormat={}{0}%, FallbackValue=0%}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
</StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="Timetable" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto" Foreground="White" Margin="1,0,0,0"/>
|
|
|
- <TextBlock Text="{Binding DateTime, FallbackValue=2020-02-24 13:09:33, StringFormat=' \{0:yyyy-MM-dd HH:mm:ss\}'}" TextAlignment="Left" VerticalAlignment="Center" FontSize="20" Foreground="White" Margin="6,0,0,0"/>
|
|
|
+
|
|
|
+ <StackPanel Grid.Column="1" Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="FileDocumentBoxOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto" Foreground="White"/>
|
|
|
+ <TextBlock TextAlignment="Left" VerticalAlignment="Center" Foreground="White" FontSize="20" Margin="10,0,0,0">ID :</TextBlock>
|
|
|
+ <TextBlock Text="{Binding VehicleID, FallbackValue=OHV001}" TextAlignment="Left" VerticalAlignment="Center" Foreground="White" FontSize="20" Margin="10,0,0,0"/>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="Timetable" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto" Foreground="White" Margin="1,0,0,0"/>
|
|
|
+ <TextBlock Text="{Binding DateTime, FallbackValue=2020-02-24 13:09:33, StringFormat=' \{0:yyyy-MM-dd HH:mm:ss\}'}" TextAlignment="Left" VerticalAlignment="Center" FontSize="20" Foreground="White" Margin="6,0,0,0"/>
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
- </StackPanel>
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
|
|
|
<Grid Grid.Row="1" Background="#455a64">
|
|
|
@@ -193,17 +208,35 @@
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<Grid Grid.Row="0">
|
|
|
- <Border BorderBrush="{x:Null}" BorderThickness="2" Margin="5"/>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="2" Margin="5" Grid.Column="1"/>
|
|
|
<!--<Border BorderBrush="#FF00FFD3" BorderThickness="2" Margin="5"/>-->
|
|
|
- <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
- <TextBlock Text="Current Tag" FontSize="20" Foreground="Orange" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
+ <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="0">
|
|
|
+ <materialDesign:PackIcon Kind="QrcodeScan" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="50" Width="auto" Foreground="Orange"/>
|
|
|
+ <TextBlock Margin="10" Text="MCR" FontSize="20" Foreground="Orange" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="1">
|
|
|
+ <materialDesign:PackIcon Kind="GpsFixed" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="50" Width="auto" Foreground="Orange"/>
|
|
|
+ <TextBlock Margin="10" Text="Point" FontSize="20" Foreground="Orange" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
<!--<TextBlock Text="Tag" FontSize="20" Foreground="Orange" VerticalAlignment="Center" HorizontalAlignment="Center"/>-->
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
<Grid Grid.Row="1">
|
|
|
- <Border BorderBrush="{x:Null}" BorderThickness="2" Margin="5"/>
|
|
|
- <StackPanel VerticalAlignment="Top" HorizontalAlignment="Center">
|
|
|
- <TextBlock Text="{Binding CurrentTag, FallbackValue=0.00}" FontSize="20" Foreground="Orange" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="2" Margin="5" />
|
|
|
+
|
|
|
+ <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="0">
|
|
|
+ <TextBlock Text="{Binding CurrentMCR, FallbackValue=0.00}" FontSize="25" Foreground="Orange" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="1">
|
|
|
+ <TextBlock Text="{Binding CurrentTag, FallbackValue=0.00}" FontSize="25" Foreground="Orange" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
</Grid>
|