Commented the configuration methods to move on to the OCR part

This commit is contained in:
2023-05-10 07:10:11 +02:00
parent aac44fcfb9
commit df9231aed6
6 changed files with 70 additions and 3 deletions
+6 -1
View File
@@ -16,6 +16,7 @@ namespace Test_Merge
private string _grandPrixUrl = "";
private string _grandPrixName = "";
private int _grandPrixYear = 2000;
private string _selectedConfigFile;
private List<string> _driverList = new List<string>();
private F1TVEmulator Emulator = null;
@@ -35,6 +36,7 @@ namespace Test_Merge
public string GrandPrixName { get => _grandPrixName; private set => _grandPrixName = value; }
public int GrandPrixYear { get => _grandPrixYear; private set => _grandPrixYear = value; }
public List<string> DriverList { get => _driverList; private set => _driverList = value; }
public string SelectedConfigFile { get => _selectedConfigFile;private set => _selectedConfigFile = value; }
public Settings()
{
@@ -398,11 +400,14 @@ namespace Test_Merge
{
try
{
Reader reader = new Reader(lsbPresets.Items[lsbPresets.SelectedIndex].ToString(), (Bitmap)pbxMain.Image,false);
string fileName = lsbPresets.Items[lsbPresets.SelectedIndex].ToString();
Reader reader = new Reader(fileName, (Bitmap)pbxMain.Image,false);
//MainZones #0 is the big main zone containing driver zones
Config = new ConfigurationTool((Bitmap)pbxMain.Image, reader.MainZones[0].Bounds);
Config.MainZone = reader.MainZones[0];
DriverList = reader.Drivers;
SelectedConfigFile = fileName;
}
catch (Exception ex)
{