check only InitDE70 to continue

This commit is contained in:
Nguyen Dinh Thuan
2024-09-17 15:51:44 +07:00
parent 0ea0f79351
commit c04d43fa63
7 changed files with 94 additions and 7 deletions
+5 -2
View File
@@ -16,7 +16,7 @@
<!-- Top Bar -->
<RowDefinition Height="*"/>
<!-- Main Content Area -->
<RowDefinition Height="50"/>
<RowDefinition Height="150"/>
<!-- Footer -->
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
@@ -86,7 +86,10 @@
<!-- Footer -->
<StackPanel Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" Background="LightGray">
<TextBlock Text="Admin Panel" VerticalAlignment="Center" Margin="10" Foreground="White" FontSize="14"/>
<TextBlock x:Name="lblStatus" Text="{Binding CDMStatus}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Foreground="Red" FontSize="14"/>
<TextBlock x:Name="lblCDMStatus" Text="{Binding CDMStatus}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Foreground="Red" FontSize="20"/>
<TextBlock x:Name="lblPrinterStatus" Text="{Binding PrinterStatus}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Foreground="Red" FontSize="20"/>
<TextBlock x:Name="lblSensorStatus" Text="{Binding SensorStatus}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Foreground="Red" FontSize="20"/>
<TextBlock x:Name="lblDeviceStatus" Text="{Binding DeviceStatus}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Foreground="Red" FontSize="20"/>
</StackPanel>
</Grid>
</hc:Window>
+4 -1
View File
@@ -38,7 +38,10 @@ namespace SafeBagDE70.Admin
private void AdminWindow_Loaded(object sender, RoutedEventArgs e)
{
lblStatus.DataContext = AppData.CDMSTATE;
lblCDMStatus.DataContext = AppData.CDMSTATE;
lblDeviceStatus.DataContext = AppData.ADMINDEVICESTATUS;
lblPrinterStatus.DataContext = AppData.ADMINDEVICESTATUS;
lblSensorStatus.DataContext = AppData.ADMINDEVICESTATUS;
}
private void LogoutButton_Click(object sender, RoutedEventArgs e)