Поправил UI, добавил команду автотренировки аккумулятора
This commit is contained in:
+22
-14
@@ -39,29 +39,37 @@
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Grid.Row="0" Grid.Column="0" FontSize="20" Text="I_acc"/>
|
||||
<TextBlock Grid.Row="0" Grid.Column="1" FontSize="20" Text="{Binding Path=IAcc,Mode=OneWay,StringFormat=F4}" />
|
||||
<TextBlock Grid.Row="1" Grid.Column="0" FontSize="20" Text="U1_acc"/>
|
||||
<TextBlock Grid.Row="1" Grid.Column="1" FontSize="20" Text="{Binding Path=U1Acc,Mode=OneWay,StringFormat=F4}" />
|
||||
<TextBlock Grid.Row="2" Grid.Column="0" FontSize="20" Text="U2_acc"/>
|
||||
<TextBlock Grid.Row="2" Grid.Column="1" FontSize="20" Text="{Binding Path=U2Acc,Mode=OneWay,StringFormat=F4}" />
|
||||
<TextBlock Grid.Row="3" Grid.Column="0" FontSize="20" Text="I_lamp"/>
|
||||
<TextBlock Grid.Row="3" Grid.Column="1" FontSize="20" Text="{Binding Path=ILamp,Mode=OneWay,StringFormat=F4}" />
|
||||
<TextBlock Grid.Row="4" Grid.Column="0" FontSize="20" Text="U1_lamp"/>
|
||||
<TextBlock Grid.Row="4" Grid.Column="1" FontSize="20" Text="{Binding Path=U1Lamp,Mode=OneWay,StringFormat=F4}" />
|
||||
<TextBlock Grid.Row="5" Grid.Column="0" FontSize="20" Text="U2_lamp"/>
|
||||
<TextBlock Grid.Row="5" Grid.Column="1" FontSize="20" Text="{Binding Path=U2Lamp,Mode=OneWay,StringFormat=F4}" />
|
||||
<TextBlock Grid.Row="6" Grid.Column="0" FontSize="20" Text="CHARGE"/>
|
||||
<Ellipse Grid.Row="6" Grid.Column="1" Width="20" Height="20" Fill="{Binding Path=ChargeStatus,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBlock Grid.Row="7" Grid.Column="0" FontSize="20" Text="LAMP"/>
|
||||
<Ellipse Grid.Row="7" Grid.Column="1" Width="20" Height="20" Fill="{Binding Path=LampStatus,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBlock Grid.Row="1" Grid.Column="0" FontSize="20" Text="U2"/>
|
||||
<TextBlock Grid.Row="1" Grid.Column="1" FontSize="20" Text="{Binding Path=U2,Mode=OneWay,StringFormat=F4}" />
|
||||
<TextBlock Grid.Row="2" Grid.Column="0" FontSize="20" Text="U3"/>
|
||||
<TextBlock Grid.Row="2" Grid.Column="1" FontSize="20" Text="{Binding Path=U3,Mode=OneWay,StringFormat=F4}" />
|
||||
<TextBlock Grid.Row="3" Grid.Column="0" FontSize="20" Text="U4"/>
|
||||
<TextBlock Grid.Row="3" Grid.Column="1" FontSize="20" Text="{Binding Path=U4,Mode=OneWay,StringFormat=F4}" />
|
||||
<TextBlock Grid.Row="4" Grid.Column="0" FontSize="20" Text="U5"/>
|
||||
<TextBlock Grid.Row="4" Grid.Column="1" FontSize="20" Text="{Binding Path=U5,Mode=OneWay,StringFormat=F4}" />
|
||||
<TextBlock Grid.Row="5" Grid.Column="0" FontSize="20" Text="CHARGE"/>
|
||||
<Ellipse Grid.Row="5" Grid.Column="1" Width="20" Height="20" Fill="{Binding Path=ChargeStatus,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBlock Grid.Row="6" Grid.Column="0" FontSize="20" Text="LAMP"/>
|
||||
<Ellipse Grid.Row="6" Grid.Column="1" Width="20" Height="20" Fill="{Binding Path=LampStatus,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" />
|
||||
</Grid>
|
||||
<StackPanel Grid.Row="1" Grid.Column="1">
|
||||
<TextBlock FontSize="24" Text="MANUAL"/>
|
||||
<Button Content="Flip Lamp" Height="40" Click="LampButton_Click"/>
|
||||
<Button Content="Flip Charge" Height="40" Click="FlipChargeButton_Click"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1" Grid.Column="2">
|
||||
<TextBlock FontSize="24" Text="AUTO"/>
|
||||
<Button Content="Discharge" Height="40" Click="DischargeButton_Click"/>
|
||||
<Button Content="Сharge" Height="40" Click="ChargeButton_Click"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1" Grid.Column="3">
|
||||
<TextBlock FontSize="24" Text="TRAIN"/>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock FontSize="20" Text="Duration (s)" Height="40"/>
|
||||
<TextBox Text="{Binding Path=TrainDuration}" FontSize="20" MinWidth="60"/>
|
||||
</StackPanel>
|
||||
<Button Content="GO" Height="40" Click="TrainButton_Click"/>
|
||||
</StackPanel>
|
||||
<TextBlock Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="4" Text="{Binding Path=OperationStatus,Mode=OneWay}" />
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
Reference in New Issue
Block a user