Unlock progress UI:
- UnlockProgressDialog with dark-themed progress ring, phase indicator, elapsed
time, and cancel/close buttons (non-modal, draggable borderless window)
- UnlockProgressViewModel with event-driven progress tracking via IUnlockService
- Triggers on pump selection (manual or K-Line auto-detect), not test start
UnlockService rewrite:
- Persistent CAN senders that outlive the unlock sequence (StopSenders on pump change)
- Concurrent K-Line fast unlock: awaits session Connected, sends RAM timer shortcut
({02 88 02 03 A8 01 00}), verifies via CAN TestUnlock before skipping wait
- Fix Type 1 verification (Value == 0 means unlocked, was inverted)
K-Line fast unlock support:
- IKwpService.TryFastUnlockAsync / KwpService implementation
Additional features:
- ILocalizationService with ES/EN resource dictionaries and runtime switching
- Safety dialogs: VoltageWarning, OilPumpConfirm, RpmSafetyWarning
- SettingsDialog for app configuration
- BenchService enhancements, ConfigurationService improvements, PDF report updates
- All UI strings localized via DynamicResource
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
65 lines
2.8 KiB
XML
65 lines
2.8 KiB
XML
<Window x:Class="HC_APTBS.Views.Dialogs.KlineErrorsDialog"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
mc:Ignorable="d"
|
|
Title="{DynamicResource Dialog.KlineErrors.Title}"
|
|
Height="400" Width="600"
|
|
ResizeMode="CanResize"
|
|
WindowStartupLocation="CenterOwner">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="40"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Margin="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Header + action buttons -->
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="{DynamicResource Dialog.KlineErrors.Header}" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold"/>
|
|
|
|
<Button Grid.Column="1" Content="{DynamicResource Dialog.KlineErrors.Read}" Margin="0,2,8,2"
|
|
Width="75" Height="24"
|
|
Command="{Binding ReadErrorsCommand}"/>
|
|
<Button Grid.Column="2" Content="{DynamicResource Dialog.KlineErrors.Clear}" Margin="0,2,0,2"
|
|
Width="75" Height="24"
|
|
Command="{Binding ClearErrorsCommand}"/>
|
|
</Grid>
|
|
|
|
<!-- Fault code text -->
|
|
<TextBox Grid.Row="1"
|
|
Text="{Binding ErrorText, Mode=OneWay}"
|
|
IsReadOnly="True" IsReadOnlyCaretVisible="True"
|
|
TextWrapping="Wrap"
|
|
FontFamily="Consolas" FontSize="12"
|
|
VerticalScrollBarVisibility="Auto"/>
|
|
</Grid>
|
|
|
|
<!-- Footer: progress bar + close button -->
|
|
<Grid Grid.Row="1" Margin="10,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ProgressBar Value="{Binding ProgressPercent, Mode=OneWay}"
|
|
Minimum="0" Maximum="100"
|
|
VerticalAlignment="Center" Margin="0,0,10,0"/>
|
|
<Button Grid.Column="1" Content="{DynamicResource Common.Close}" Width="80" Height="24"
|
|
VerticalAlignment="Center"
|
|
Command="{Binding CloseCommand}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|