This commit is contained in:
GukSang.Jin
2026-05-20 14:27:16 +08:00
parent 17d9904898
commit df5c7566fb
9 changed files with 97 additions and 27 deletions

View File

@@ -13,11 +13,10 @@ namespace TabletTester2025
private readonly DatabaseService _dbService;
private List<TestBatch> _allData;
public HistoryWindow()
public HistoryWindow(DatabaseService dbService)
{
InitializeComponent();
var connectionString = "Data Source=TabletTests.db";
_dbService = new DatabaseService(connectionString);
_dbService = dbService ?? throw new ArgumentNullException(nameof(dbService));
LoadData();
}