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:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using HC_APTBS.Models;
|
||||
|
||||
namespace HC_APTBS.Services
|
||||
@@ -73,8 +74,8 @@ namespace HC_APTBS.Services
|
||||
/// <summary>Validates a username/password pair against stored credentials.</summary>
|
||||
bool ValidateUser(string username, string password);
|
||||
|
||||
/// <summary>Returns all stored user credentials as a dictionary.</summary>
|
||||
IReadOnlyDictionary<string, string> GetUsers();
|
||||
/// <summary>Returns all stored usernames (passwords are never exposed).</summary>
|
||||
IReadOnlyList<string> GetUsers();
|
||||
|
||||
/// <summary>Replaces all stored user credentials and persists them.</summary>
|
||||
void UpdateUsers(Dictionary<string, string> users);
|
||||
|
||||
Reference in New Issue
Block a user