feat: add Ford VP44 unlock progress dialog, K-Line fast unlock, localization, safety dialogs, and settings
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>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
mc:Ignorable="d"
|
||||
Title="Generate Report"
|
||||
Title="{DynamicResource Dialog.Report.Title}"
|
||||
Height="450" Width="800"
|
||||
ResizeMode="NoResize"
|
||||
WindowStartupLocation="CenterOwner">
|
||||
@@ -28,11 +28,11 @@
|
||||
Grid.Column="2" Grid.RowSpan="5" Margin="-3,10,0,0"/>
|
||||
|
||||
<!-- ── Section headers ─────────────────────────────────────────────── -->
|
||||
<TextBlock Text="Client List" FontSize="14" FontWeight="SemiBold"
|
||||
<TextBlock Text="{DynamicResource Dialog.Report.ClientList}" FontSize="14" FontWeight="SemiBold"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10"/>
|
||||
<TextBlock Grid.Column="1" Text="Client Data" FontSize="20" FontWeight="SemiBold"
|
||||
<TextBlock Grid.Column="1" Text="{DynamicResource Dialog.Report.ClientData}" FontSize="20" FontWeight="SemiBold"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10"/>
|
||||
<TextBlock Grid.Column="2" Text="Company Data" FontSize="20" FontWeight="SemiBold"
|
||||
<TextBlock Grid.Column="2" Text="{DynamicResource Dialog.Report.CompanyData}" FontSize="20" FontWeight="SemiBold"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10"/>
|
||||
|
||||
<!-- ── Client list ─────────────────────────────────────────────────── -->
|
||||
@@ -47,17 +47,17 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Content="Name:" VerticalAlignment="Center" FontSize="13"/>
|
||||
<Label Content="{DynamicResource Dialog.Report.Name}" VerticalAlignment="Center" FontSize="13"/>
|
||||
<ComboBox Grid.Column="1" IsEditable="True"
|
||||
ItemsSource="{Binding ClientNames}"
|
||||
Text="{Binding SelectedClientName, UpdateSourceTrigger=PropertyChanged}"
|
||||
VerticalAlignment="Center" FontSize="13" Margin="4,0"/>
|
||||
<Button Grid.Column="2" Content="Save" Width="60" Height="24"
|
||||
<Button Grid.Column="2" Content="{DynamicResource Common.Save}" Width="60" Height="24"
|
||||
Command="{Binding SaveClientCommand}"/>
|
||||
</Grid>
|
||||
|
||||
<!-- ── Client info text ─────────────────────────────────────────────── -->
|
||||
<GroupBox Grid.Column="1" Grid.Row="2" Header="Client information"
|
||||
<GroupBox Grid.Column="1" Grid.Row="2" Header="{DynamicResource Dialog.Report.ClientInfo}"
|
||||
Margin="8,0,8,4" FontSize="13">
|
||||
<TextBox Text="{Binding ClientInfo, UpdateSourceTrigger=PropertyChanged}"
|
||||
TextWrapping="Wrap" AcceptsReturn="True"
|
||||
@@ -65,7 +65,7 @@
|
||||
</GroupBox>
|
||||
|
||||
<!-- ── Observations ─────────────────────────────────────────────────── -->
|
||||
<GroupBox Grid.Column="1" Grid.Row="3" Header="Observations"
|
||||
<GroupBox Grid.Column="1" Grid.Row="3" Header="{DynamicResource Dialog.Report.Observations}"
|
||||
Margin="8,0,8,4" FontSize="13">
|
||||
<TextBox Text="{Binding Observations, UpdateSourceTrigger=PropertyChanged}"
|
||||
TextWrapping="Wrap"
|
||||
@@ -78,7 +78,7 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Content="Operator:" VerticalAlignment="Center" FontSize="13"/>
|
||||
<Label Content="{DynamicResource Dialog.Report.Operator}" VerticalAlignment="Center" FontSize="13"/>
|
||||
<TextBox Grid.Column="1" Text="{Binding OperatorName, UpdateSourceTrigger=PropertyChanged}"
|
||||
VerticalAlignment="Center" FontSize="13" Margin="4,0" Height="24"
|
||||
IsReadOnly="True" Background="#F0F0F0"/>
|
||||
@@ -95,11 +95,11 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Content="Company:" VerticalAlignment="Center" FontSize="13"/>
|
||||
<Label Content="{DynamicResource Dialog.Report.Company}" VerticalAlignment="Center" FontSize="13"/>
|
||||
<TextBox Grid.Column="1" Text="{Binding CompanyName, UpdateSourceTrigger=PropertyChanged}"
|
||||
VerticalAlignment="Center" FontSize="13" Margin="4,0" Height="24"/>
|
||||
</Grid>
|
||||
<GroupBox Grid.Row="1" Header="Company information"
|
||||
<GroupBox Grid.Row="1" Header="{DynamicResource Dialog.Report.CompanyInfo}"
|
||||
Margin="0,4,0,0" FontSize="13">
|
||||
<TextBox Text="{Binding CompanyInfo, UpdateSourceTrigger=PropertyChanged}"
|
||||
TextWrapping="Wrap" AcceptsReturn="True"
|
||||
@@ -109,15 +109,15 @@
|
||||
|
||||
<!-- ── Buttons row ──────────────────────────────────────────────────── -->
|
||||
<Button Grid.Row="4" Grid.Column="0"
|
||||
Content="Delete Client" Padding="6,2" Margin="10,8,0,8"
|
||||
Content="{DynamicResource Dialog.Report.DeleteClient}" Padding="6,2" Margin="10,8,0,8"
|
||||
HorizontalAlignment="Left"
|
||||
Command="{Binding DeleteClientCommand}"/>
|
||||
|
||||
<StackPanel Grid.Row="4" Grid.Column="2"
|
||||
Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,8,10,8">
|
||||
<Button Content="Generate" Width="80" Height="24" Margin="0,0,8,0"
|
||||
<Button Content="{DynamicResource Dialog.Report.Generate}" Width="80" Height="24" Margin="0,0,8,0"
|
||||
Command="{Binding AcceptCommand}"/>
|
||||
<Button Content="Cancel" Width="80" Height="24"
|
||||
<Button Content="{DynamicResource Common.Cancel}" Width="80" Height="24"
|
||||
Command="{Binding CancelCommand}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user