diff --git a/Test_Merge/ConfigurationTool.cs b/Test_Merge/ConfigurationTool.cs index 6eeeeeb..acdd023 100644 --- a/Test_Merge/ConfigurationTool.cs +++ b/Test_Merge/ConfigurationTool.cs @@ -1,4 +1,10 @@ -using System; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : ConfigurationTool.cs +/// Brief : Class that contains all the methods needed to create a config file for the OCR +/// Version : 0.1 + +using System; using System.Collections.Generic; using System.Drawing; using System.Linq; diff --git a/Test_Merge/DriverData.cs b/Test_Merge/DriverData.cs index 22056f9..111f20b 100644 --- a/Test_Merge/DriverData.cs +++ b/Test_Merge/DriverData.cs @@ -1,4 +1,10 @@ -using System; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : DriverData.cs +/// Brief : Class used to store Driver informations +/// Version : 0.1 + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/Test_Merge/DriverDrsWindow.cs b/Test_Merge/DriverDrsWindow.cs index 92ed5c9..5d9cecd 100644 --- a/Test_Merge/DriverDrsWindow.cs +++ b/Test_Merge/DriverDrsWindow.cs @@ -1,4 +1,10 @@ -using System; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : DriverDrsWindow.cs +/// Brief : Window containing DRS related method and infos +/// Version : 0.1 + +using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; diff --git a/Test_Merge/DriverGapToLeaderWindow.cs b/Test_Merge/DriverGapToLeaderWindow.cs index 6f96060..1a235b6 100644 --- a/Test_Merge/DriverGapToLeaderWindow.cs +++ b/Test_Merge/DriverGapToLeaderWindow.cs @@ -1,4 +1,10 @@ -using System; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : DriverGapToLeaderWindow.cs +/// Brief : Window containing infos about the gap to the leader of a driver +/// Version : 0.1 + +using System; using System.Collections.Generic; using System.Drawing; using System.Linq; diff --git a/Test_Merge/DriverLapTimeWindow.cs b/Test_Merge/DriverLapTimeWindow.cs index 7f5a0ef..88d6e56 100644 --- a/Test_Merge/DriverLapTimeWindow.cs +++ b/Test_Merge/DriverLapTimeWindow.cs @@ -1,4 +1,10 @@ -using System; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : DriverLapTimeWindow +/// Brief : Window containing infos about the lap time of a driver +/// Version : 0.1 + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/Test_Merge/DriverNameWindow.cs b/Test_Merge/DriverNameWindow.cs index abc6e20..9a0a72b 100644 --- a/Test_Merge/DriverNameWindow.cs +++ b/Test_Merge/DriverNameWindow.cs @@ -1,4 +1,10 @@ -using System; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : DriverNameWindow +/// Brief : Window containing infos about the name of the driver +/// Version : 0.1 + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/Test_Merge/DriverSectorWindow.cs b/Test_Merge/DriverSectorWindow.cs index bcfd878..e6bb852 100644 --- a/Test_Merge/DriverSectorWindow.cs +++ b/Test_Merge/DriverSectorWindow.cs @@ -1,4 +1,10 @@ -using System; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : DriverSectorWindow.cs +/// Brief : Window containing infos about a driver sector time. Can be the first second or third, does not matter. +/// Version : 0.1 + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/Test_Merge/DriverTyresWindow.cs b/Test_Merge/DriverTyresWindow.cs index 849f185..8b390bb 100644 --- a/Test_Merge/DriverTyresWindow.cs +++ b/Test_Merge/DriverTyresWindow.cs @@ -1,4 +1,10 @@ -using System; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : DriverTyresWindow.cs +/// Brief : Window containing infos about a driver's tyre +/// Version : 0.1 + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/Test_Merge/F1TVEmulator.cs b/Test_Merge/F1TVEmulator.cs index feb63c2..8883e46 100644 --- a/Test_Merge/F1TVEmulator.cs +++ b/Test_Merge/F1TVEmulator.cs @@ -1,4 +1,10 @@ -using OpenQA.Selenium; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : F1TVEmulator.cs +/// Brief : Class that contains methods to emulate a browser and navigate the F1TV website +/// Version : 0.1 + +using OpenQA.Selenium; using OpenQA.Selenium.Firefox; using OpenQA.Selenium.Interactions; using OpenQA.Selenium.Support.UI; diff --git a/Test_Merge/Form1.cs b/Test_Merge/Form1.cs index fe7937b..16474f0 100644 --- a/Test_Merge/Form1.cs +++ b/Test_Merge/Form1.cs @@ -21,7 +21,7 @@ namespace Test_Merge { Settings settingsForm = new Settings(); settingsForm.ShowDialog(); - MessageBox.Show(settingsForm.GrandPrixUrl); + MessageBox.Show(settingsForm.GrandPrixUrl + Environment.NewLine + settingsForm.GrandPrixName + Environment.NewLine + settingsForm.GrandPrixYear); } } } diff --git a/Test_Merge/OcrImage.cs b/Test_Merge/OcrImage.cs index 7b02432..7d55e6d 100644 --- a/Test_Merge/OcrImage.cs +++ b/Test_Merge/OcrImage.cs @@ -1,4 +1,10 @@ -using System; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : OcrImage.cs +/// Brief : Class containing all the methods used to enhance images for OCR +/// Version : 0.1 + +using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Drawing; diff --git a/Test_Merge/Reader.cs b/Test_Merge/Reader.cs index 879a3c4..e806492 100644 --- a/Test_Merge/Reader.cs +++ b/Test_Merge/Reader.cs @@ -1,4 +1,10 @@ -using System; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : Reader.cs +/// Brief : Class used to Read the config file for the OCR +/// Version : 0.1 + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/Test_Merge/Settings.Designer.cs b/Test_Merge/Settings.Designer.cs index f0829a1..b3ed9e8 100644 --- a/Test_Merge/Settings.Designer.cs +++ b/Test_Merge/Settings.Designer.cs @@ -42,11 +42,13 @@ this.btnAddDriver = new System.Windows.Forms.Button(); this.tbxDriverName = new System.Windows.Forms.TextBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.btnResetDriver = new System.Windows.Forms.Button(); this.btnRefresh = new System.Windows.Forms.Button(); this.pbxMain = new System.Windows.Forms.PictureBox(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.pbxDriverZone = new System.Windows.Forms.PictureBox(); this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.btnLoadPreset = new System.Windows.Forms.Button(); this.label8 = new System.Windows.Forms.Label(); this.lsbPresets = new System.Windows.Forms.ListBox(); this.tbxPresetName = new System.Windows.Forms.TextBox(); @@ -56,8 +58,6 @@ this.lblWindowPointsRemaining = new System.Windows.Forms.Label(); this.btnCreateWindow = new System.Windows.Forms.Button(); this.btnCreatZone = new System.Windows.Forms.Button(); - this.btnResetDriver = new System.Windows.Forms.Button(); - this.btnLoadPreset = new System.Windows.Forms.Button(); this.gpbxInfos.SuspendLayout(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); @@ -216,6 +216,16 @@ this.groupBox2.TabStop = false; this.groupBox2.Text = "Preview"; // + // btnResetDriver + // + this.btnResetDriver.Location = new System.Drawing.Point(113, 22); + this.btnResetDriver.Name = "btnResetDriver"; + this.btnResetDriver.Size = new System.Drawing.Size(101, 33); + this.btnResetDriver.TabIndex = 2; + this.btnResetDriver.Text = "Reset"; + this.btnResetDriver.UseVisualStyleBackColor = true; + this.btnResetDriver.Click += new System.EventHandler(this.btnResetDriver_Click); + // // btnRefresh // this.btnRefresh.Location = new System.Drawing.Point(6, 23); @@ -279,6 +289,16 @@ this.groupBox4.TabStop = false; this.groupBox4.Text = "Calibration settings"; // + // btnLoadPreset + // + this.btnLoadPreset.Location = new System.Drawing.Point(6, 297); + this.btnLoadPreset.Name = "btnLoadPreset"; + this.btnLoadPreset.Size = new System.Drawing.Size(201, 40); + this.btnLoadPreset.TabIndex = 10; + this.btnLoadPreset.Text = "LoadPreset"; + this.btnLoadPreset.UseVisualStyleBackColor = true; + this.btnLoadPreset.Click += new System.EventHandler(this.btnLoadPreset_Click); + // // label8 // this.label8.AutoSize = true; @@ -363,26 +383,6 @@ this.btnCreatZone.UseVisualStyleBackColor = true; this.btnCreatZone.Click += new System.EventHandler(this.btnCreatZone_Click); // - // btnResetDriver - // - this.btnResetDriver.Location = new System.Drawing.Point(113, 22); - this.btnResetDriver.Name = "btnResetDriver"; - this.btnResetDriver.Size = new System.Drawing.Size(101, 33); - this.btnResetDriver.TabIndex = 2; - this.btnResetDriver.Text = "Reset"; - this.btnResetDriver.UseVisualStyleBackColor = true; - this.btnResetDriver.Click += new System.EventHandler(this.btnResetDriver_Click); - // - // btnLoadPreset - // - this.btnLoadPreset.Location = new System.Drawing.Point(6, 297); - this.btnLoadPreset.Name = "btnLoadPreset"; - this.btnLoadPreset.Size = new System.Drawing.Size(201, 40); - this.btnLoadPreset.TabIndex = 10; - this.btnLoadPreset.Text = "LoadPreset"; - this.btnLoadPreset.UseVisualStyleBackColor = true; - this.btnLoadPreset.Click += new System.EventHandler(this.btnLoadPreset_Click); - // // Settings // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 19F); diff --git a/Test_Merge/Window.cs b/Test_Merge/Window.cs index 3d40c6d..fe8a7ca 100644 --- a/Test_Merge/Window.cs +++ b/Test_Merge/Window.cs @@ -1,4 +1,9 @@ - +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : Window.cs +/// Brief : Default Window object that is mainly expected to be inherited. +/// Version : 0.1 + using System; using System.Collections.Generic; using System.Linq; diff --git a/Test_Merge/Zone.cs b/Test_Merge/Zone.cs index 136018a..d73167a 100644 --- a/Test_Merge/Zone.cs +++ b/Test_Merge/Zone.cs @@ -1,4 +1,10 @@ -using System; +/// Author : Maxime Rohmer +/// Date : 08/05/2023 +/// File : Zone.cs +/// Brief : Class that contains all the methods and infos for a zone. This is designed to be potentially be inherited. +/// Version : 0.1 + +using System; using System.Collections.Generic; using System.Drawing; using System.Linq;