|
|
@@ -51,46 +51,73 @@
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<Grid Grid.Row="0">
|
|
|
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
+ <StackPanel Margin="25,0,0,0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
|
<StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
- <Button Content="Version" Margin="3" IsEnabled="False"/>
|
|
|
- <Button Content="LifeTime" Margin="3" IsEnabled="False"/>
|
|
|
+ <Button Content="Comport" Margin="3" IsEnabled="False"/>
|
|
|
+ <Button Content="Baudrate" Margin="3" IsEnabled="False"/>
|
|
|
+ <Button Content="DataBits" Margin="3" IsEnabled="False"/>
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
- <Button Content="1.0.0.01" Margin="3" Background="{x:Null}"/>
|
|
|
- <Button Content="yyyy-MM-dd" Margin="3" Background="{x:Null}"/>
|
|
|
+ <!--<Button Content="{Binding BatteryComPort, FallbackValue=COM1}" Margin="3" Background="{x:Null}"/>-->
|
|
|
+ <ComboBox
|
|
|
+ materialDesign:HintAssist.Hint="ComPort">
|
|
|
+ <ComboBoxItem>
|
|
|
+ COM1
|
|
|
+ </ComboBoxItem>
|
|
|
+ <ComboBoxItem>
|
|
|
+ COM2
|
|
|
+ </ComboBoxItem>
|
|
|
+ <ComboBoxItem>
|
|
|
+ COM3
|
|
|
+ </ComboBoxItem>
|
|
|
+ <ComboBoxItem>
|
|
|
+ COM4
|
|
|
+ </ComboBoxItem>
|
|
|
+ </ComboBox>
|
|
|
+ <Button Content="{Binding BatteryBaudRate, FallbackValue=19200}" Margin="3" Background="{x:Null}"/>
|
|
|
+ <Button Content="{Binding BatteryDataBits, FallbackValue=8}" Margin="3" Background="{x:Null}"/>
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
|
|
|
<!--Send Message Buttons-->
|
|
|
- <StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
- <Button Margin="5">
|
|
|
+ <StackPanel Margin="20,0,0,0" Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
|
+ <Button Margin="10" Width="80" Height="60"
|
|
|
+ Command="{Binding MsgSelect}"
|
|
|
+ CommandParameter="1">
|
|
|
<StackPanel>
|
|
|
<TextBlock Text="MSG1"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <Button Margin="5">
|
|
|
+ <Button Margin="10" Width="80" Height="60"
|
|
|
+ Command="{Binding MsgSelect}"
|
|
|
+ CommandParameter="2">
|
|
|
<StackPanel>
|
|
|
<TextBlock Text="MSG2"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <Button Margin="5">
|
|
|
+ <Button Margin="10" Width="80" Height="60"
|
|
|
+ Command="{Binding MsgSelect}"
|
|
|
+ CommandParameter="3">
|
|
|
<StackPanel>
|
|
|
<TextBlock Text="MSG3"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <Button Margin="5">
|
|
|
+ <Button Margin="10" Width="80" Height="60"
|
|
|
+ Command="{Binding MsgSelect}"
|
|
|
+ CommandParameter="4">
|
|
|
<StackPanel>
|
|
|
<TextBlock Text="MSG4"/>
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <Button Margin="5">
|
|
|
+ <Button Margin="10" Width="80" Height="60"
|
|
|
+ Command="{Binding MsgSelect}"
|
|
|
+ CommandParameter="5">
|
|
|
<StackPanel>
|
|
|
<TextBlock Text="MSG5"/>
|
|
|
</StackPanel>
|
|
|
@@ -99,17 +126,23 @@
|
|
|
</Grid>
|
|
|
|
|
|
<Grid Grid.Row="1">
|
|
|
-
|
|
|
+ <StackPanel VerticalAlignment="Top">
|
|
|
+ <GroupBox
|
|
|
+ Margin="30,0,20,0"
|
|
|
+ Header="Data Receive" FontSize="15">
|
|
|
+ <TextBox Text="{Binding BatteryReceive, FallbackValue=[Receive] : xxxxx}"/>
|
|
|
+ </GroupBox>
|
|
|
+ </StackPanel>
|
|
|
</Grid>
|
|
|
</Grid>
|
|
|
</Grid>
|
|
|
|
|
|
- <Grid Grid.Column="1" Background="#37474f">
|
|
|
+ <Grid Grid.Column="1" Background="#263238">
|
|
|
<Border Margin="1" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
|
|
|
<StackPanel>
|
|
|
<Button Margin="5" HorizontalAlignment="Stretch" Height="69"
|
|
|
BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding CloseDialogCommand}" CommandParameter="true">
|
|
|
+ Command="{Binding BatteryOpenCommand}" CommandParameter="true">
|
|
|
<StackPanel>
|
|
|
<!--<materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
<TextBlock Text="Open" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
|
|
|
@@ -118,14 +151,15 @@
|
|
|
|
|
|
<Button Margin="5" HorizontalAlignment="Stretch" Height="69"
|
|
|
BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding CloseDialogCommand}" CommandParameter="true">
|
|
|
+ Command="{Binding BatteryCloseCommand}" CommandParameter="true">
|
|
|
<StackPanel>
|
|
|
<!--<materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
<TextBlock Text="Close" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
|
|
|
- <Button Margin="5,50" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding CloseDialogCommand}" CommandParameter="true">
|
|
|
+ <Button Margin="5,50" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2"
|
|
|
+ Command="{Binding CloseDialogCommand}" CommandParameter="true">
|
|
|
<StackPanel>
|
|
|
<materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
<TextBlock Text="Close" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
|