From 81e5d6ec456ab9c273d3d7dbf60d557bd2e7b039 Mon Sep 17 00:00:00 2001 From: Bouletmarc Date: Sun, 1 May 2022 19:07:45 -0400 Subject: [PATCH] V1.1.0 - More Definitions added --- ClassEditor.cs | 55 +++++--- Class_DefinitionMaker.cs | 214 +++++++++++++++++++++++++++++++ Editortable.cs | 1 + FlashToolTest.csproj | 2 + GForm_Main.cs | 42 +++--- Properties/Resources.Designer.cs | 10 ++ Properties/Resources.resx | 3 + 7 files changed, 289 insertions(+), 38 deletions(-) create mode 100644 Class_DefinitionMaker.cs diff --git a/ClassEditor.cs b/ClassEditor.cs index f002723..6c21e8d 100644 --- a/ClassEditor.cs +++ b/ClassEditor.cs @@ -341,9 +341,10 @@ internal class ClassEditor } //Check if table size have more than 1x roms (or 1column if inverted) ... aka if it's a 3D table - bool IsMultiTable = false; + bool IsMultiTable = true; + /*bool IsMultiTable = false; if (TableSize[1] > 1 && !IsInverted) IsMultiTable = true; - if (TableSize[0] > 1 && IsInverted) IsMultiTable = true; + if (TableSize[0] > 1 && IsInverted) IsMultiTable = true;*/ if (IsMultiTable) { @@ -355,14 +356,21 @@ internal class ClassEditor { for (int i = 0; i < TableSize[1]; i++) { - double num = 0; - if (IsSingleByteX) num = (double)this.GetSingleByteValue(ROMLocationX + i); - else num = (double)this.GetIntValue(ROMLocationX + i * 2); + if (ROMLocationX != 0) + { + double num = 0; + if (IsSingleByteX) num = (double)this.GetSingleByteValue(ROMLocationX + i); + else num = (double)this.GetIntValue(ROMLocationX + i * 2); - string HeaderStr = ""; - if (ThisFormatX != "") HeaderStr = DoMath(num, ThisMathX, false).ToString(ThisFormatX); - if (ThisFormatX == "") HeaderStr = DoMath(num, ThisMathX, false).ToString(); - Editortable_0.dataGridView_0.Columns.Add(HeaderStr, HeaderStr); + string HeaderStr = ""; + if (ThisFormatX != "") HeaderStr = DoMath(num, ThisMathX, false).ToString(ThisFormatX); + if (ThisFormatX == "") HeaderStr = DoMath(num, ThisMathX, false).ToString(); + Editortable_0.dataGridView_0.Columns.Add(HeaderStr, HeaderStr); + } + else + { + Editortable_0.dataGridView_0.Columns.Add(RowHeaderString, RowHeaderString); + } } } else @@ -393,15 +401,24 @@ internal class ClassEditor //Rows(X) Math if (IsInverted) { - Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = HeaderStringList[num10]; + string ThisHeaderVal = HeaderStringList[num10]; + if (ThisHeaderVal == "") ThisHeaderVal = RowHeaderString; + Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = ThisHeaderVal; } else { - double num = 0; - if (IsSingleByteX) num = (double)this.GetSingleByteValue(ROMLocationX + num10); - else num = (double)this.GetIntValue(ROMLocationX + num10 * 2); - if (ThisFormatX != "") Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = DoMath(num, ThisMathX, false).ToString(ThisFormatX); - if (ThisFormatX == "") Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = DoMath(num, ThisMathX, false).ToString(); + if (ROMLocationX != 0) + { + double num = 0; + if (IsSingleByteX) num = (double)this.GetSingleByteValue(ROMLocationX + num10); + else num = (double)this.GetIntValue(ROMLocationX + num10 * 2); + if (ThisFormatX != "") Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = DoMath(num, ThisMathX, false).ToString(ThisFormatX); + if (ThisFormatX == "") Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = DoMath(num, ThisMathX, false).ToString(); + } + else + { + Editortable_0.dataGridView_0.Rows[num10].HeaderCell.Value = RowHeaderString; + } } num10++; } @@ -442,7 +459,7 @@ internal class ClassEditor } } //############################################## - else + /*else { //Normal 'single' table if (IsInverted) @@ -493,7 +510,7 @@ internal class ClassEditor } Editortable_0.dataGridView_0.Rows[0].HeaderCell.Value = RowHeaderString; } - } + }*/ foreach (object obj in Editortable_0.dataGridView_0.Columns) { DataGridViewColumn dataGridViewColumn = (DataGridViewColumn)obj; @@ -934,7 +951,7 @@ internal class ClassEditor string Folderpath = Application.StartupPath + @"\Definitions"; if (Directory.Exists(Folderpath)) { - string[] AllDefinitionFiles = Directory.GetFiles(Folderpath, "*.txt"); + string[] AllDefinitionFiles = Directory.GetFiles(Folderpath, "*.txt", SearchOption.AllDirectories); Editortable_0.GForm_Main_0.method_1("Loading definitions files..."); foreach (string ThisFilePath in AllDefinitionFiles) @@ -979,7 +996,7 @@ internal class ClassEditor string Folderpath = Application.StartupPath + @"\Definitions"; if (Directory.Exists(Folderpath)) { - string[] AllDefinitionFiles = Directory.GetFiles(Folderpath, "*.txt"); + string[] AllDefinitionFiles = Directory.GetFiles(Folderpath, "*.txt", SearchOption.AllDirectories); DefinitionsLocationsX = new List(); DefinitionsLocationsY = new List(); diff --git a/Class_DefinitionMaker.cs b/Class_DefinitionMaker.cs new file mode 100644 index 0000000..95fa0e1 --- /dev/null +++ b/Class_DefinitionMaker.cs @@ -0,0 +1,214 @@ +using System; +using System.IO; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +class Class_DefinitionMaker +{ + List AllECUS = new List(); + List AllFoundFunctions = new List(); + List AllFoundAddress = new List(); + + public void CreateDefinitionsFiles() + { + //########################################################################################################################## + //string FirmwareFolder = Application.StartupPath + @"\Firmwares"; + string FirmwareFolder = @"C:\Users\boule\Documents\Visual Studio 2019\Projects\RWD_2_BIN\bin\Debug\Firmwares"; + //########################################################################################################################## + + string[] AllFiles = Directory.GetFiles(FirmwareFolder, "*.bin"); + foreach (string ThisFile in AllFiles) + { + byte[] AllBytes = File.ReadAllBytes(ThisFile); + + //Create a fake bootloader section + byte[] BufferBytes = new byte[0x8000 + AllBytes.Length]; + for (int i = 0; i < 0x8000; i++) BufferBytes[i] = 0xff; + for (int i = 0; i < AllBytes.Length; i++) BufferBytes[0x8000 + i] = AllBytes[i]; + AllBytes = BufferBytes; + + int ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("00 0A 00 0A 00 C8 00"), 16); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "VTEC Engagement", ThisAddr); + + ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("FA 01 2C FF FF 40"), 71); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "Revlimiter", ThisAddr); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 1", ThisAddr + 8); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 2", ThisAddr + 16); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 3", ThisAddr + 24); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 4", ThisAddr + 32); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 5", ThisAddr + 36); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 6", ThisAddr + 52); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "--Revlimiter 7", ThisAddr + 60); + + ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("00 32 00 1E 01 2C 00 00 08 66 66 00 00"), -2); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "Speedlimiter", ThisAddr); + + ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("0C 80 0F A0 12 C0 19 00"), 8); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "Injector Voltage Compensation", ThisAddr); + + //ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("00 1E 00 00 00 03 00 05 00 C8"), -8); + ThisAddr = CheckForBytesAndGetAddress(AllBytes, StringToByteArray("00 1E 00 00 00 03 00 05 00"), -8); + if (ThisAddr != -1) AddToList(Path.GetFileNameWithoutExtension(ThisFile), "MAF Load Limit", ThisAddr); + } + + GenerateDefinitions(); + } + + private void GenerateDefinitions() + { + string BufECUName = ""; + + string AllStringFile = ""; + for (int i = 0; i < AllECUS.Count; i++) + { + if (BufECUName != AllECUS[i]) + { + if (BufECUName != "") CreateFile(AllStringFile, BufECUName); + BufECUName = AllECUS[i]; + AllStringFile = GenerateNewHeader(BufECUName); + //Console.WriteLine(AllECUS[i] + " | 0x" + AllFoundAddress[i].ToString("X") + " | " + AllFoundFunctions[i]); + } + + string FoundFunc = AllFoundFunctions[i]; + int FoundAddr = AllFoundAddress[i]; + + if (FoundFunc == "VTEC Engagement") + { + AllStringFile = AllStringFile + "ROMLocationTable:0x" + FoundAddr.ToString("X") + Environment.NewLine; + AllStringFile = AllStringFile + "Name:" + FoundFunc + Environment.NewLine; + AllStringFile = AllStringFile + "Unit2:RPM" + Environment.NewLine; + AllStringFile = AllStringFile + "TableSize:4x1" + Environment.NewLine; + AllStringFile = AllStringFile + "ValueMin:-10000" + Environment.NewLine; + AllStringFile = AllStringFile + "ValueMax:30000" + Environment.NewLine; + AllStringFile = AllStringFile + "ChangeAmount:10" + Environment.NewLine; + AllStringFile = AllStringFile + "Headers:Enable Low,Disable Low,Enable High,Disable High" + Environment.NewLine; + AllStringFile = AllStringFile + "#############################" + Environment.NewLine; + } + + if (FoundFunc == "Revlimiter" || FoundFunc == "--Revlimiter 1" || FoundFunc == "--Revlimiter 2" + || FoundFunc == "--Revlimiter 3" || FoundFunc == "--Revlimiter 4" || FoundFunc == "--Revlimiter 5" + || FoundFunc == "--Revlimiter 6" || FoundFunc == "--Revlimiter 7") + { + AllStringFile = AllStringFile + "ROMLocationTable:0x" + FoundAddr.ToString("X") + Environment.NewLine; + AllStringFile = AllStringFile + "Name:" + FoundFunc + Environment.NewLine; + AllStringFile = AllStringFile + "Unit2:RPM" + Environment.NewLine; + AllStringFile = AllStringFile + "TableSize:2x1" + Environment.NewLine; + AllStringFile = AllStringFile + "ValueMax:10000" + Environment.NewLine; + AllStringFile = AllStringFile + "ChangeAmount:50" + Environment.NewLine; + AllStringFile = AllStringFile + "#############################" + Environment.NewLine; + } + + if (FoundFunc == "Speedlimiter") + { + AllStringFile = AllStringFile + "ROMLocationTable:0x" + FoundAddr.ToString("X") + Environment.NewLine; + AllStringFile = AllStringFile + "Name:" + FoundFunc + Environment.NewLine; + AllStringFile = AllStringFile + "Unit2:KPH" + Environment.NewLine; + AllStringFile = AllStringFile + "TableSize:1x1" + Environment.NewLine; + AllStringFile = AllStringFile + "ValueMax:255" + Environment.NewLine; + AllStringFile = AllStringFile + "# MathTable:X/1.609" + Environment.NewLine; + AllStringFile = AllStringFile + "#############################" + Environment.NewLine; + } + + if (FoundFunc == "Injector Voltage Compensation") + { + AllStringFile = AllStringFile + "ROMLocationTable:0x" + FoundAddr.ToString("X") + Environment.NewLine; + AllStringFile = AllStringFile + "Name:" + FoundFunc + Environment.NewLine; + AllStringFile = AllStringFile + "Unit1:Volts" + Environment.NewLine; + AllStringFile = AllStringFile + "Unit2:ms" + Environment.NewLine; + AllStringFile = AllStringFile + "TableSize:5x1" + Environment.NewLine; + AllStringFile = AllStringFile + "MathTable:X*0.002" + Environment.NewLine; + AllStringFile = AllStringFile + "FormatTable:0.00" + Environment.NewLine; + AllStringFile = AllStringFile + "ValueMin:-1000" + Environment.NewLine; + AllStringFile = AllStringFile + "ValueMax:3000" + Environment.NewLine; + AllStringFile = AllStringFile + "Headers:6.00,8.00,12.00,14.00,16.00" + Environment.NewLine; + AllStringFile = AllStringFile + "#############################" + Environment.NewLine; + } + + if (FoundFunc == "MAF Load Limit") + { + AllStringFile = AllStringFile + "ROMLocationTable:0x" + FoundAddr.ToString("X") + Environment.NewLine; + AllStringFile = AllStringFile + "Name:" + FoundFunc + Environment.NewLine; + AllStringFile = AllStringFile + "Unit1:Mg/Stroke" + Environment.NewLine; + AllStringFile = AllStringFile + "TableSize:4x1" + Environment.NewLine; + AllStringFile = AllStringFile + "ValueMin:-1000" + Environment.NewLine; + AllStringFile = AllStringFile + "ValueMax:4000" + Environment.NewLine; + AllStringFile = AllStringFile + "ChangeAmount:50" + Environment.NewLine; + AllStringFile = AllStringFile + "#############################" + Environment.NewLine; + } + } + + CreateFile(AllStringFile, BufECUName); + } + + private void CreateFile(string AllString, string ThisFile) + { + string DirectoryPath = Application.StartupPath + @"\Definitions\Generated"; + + if (!Directory.Exists(DirectoryPath)) Directory.CreateDirectory(DirectoryPath); + + File.Create(DirectoryPath + @"\" + ThisFile + ".txt").Dispose(); + File.WriteAllText(DirectoryPath + @"\" + ThisFile + ".txt", AllString); + } + + private string GenerateNewHeader(string ThisEECU) + { + string ReturnStr = ""; + ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine; + ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine; + ReturnStr = ReturnStr + "# THIS FILE AS BEEN GENERATED AUTOMATICLY, ROM LOCATIONS CAN BE WRONG" + Environment.NewLine; + ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine; + ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine; + ReturnStr = ReturnStr + "# Supported ECU:" + Environment.NewLine; + ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine; + ReturnStr = ReturnStr + ThisEECU + Environment.NewLine; + ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine; + ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine; + ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine; + ReturnStr = ReturnStr + "# ROM Parameters Definitions:" + Environment.NewLine; + ReturnStr = ReturnStr + "#######################################################################" + Environment.NewLine; + + return ReturnStr; + } + + private void AddToList(string ThisECUName, string ThisFunction, int ThisAddr) + { + AllECUS.Add(ThisECUName); + AllFoundFunctions.Add(ThisFunction); + AllFoundAddress.Add(ThisAddr); + } + + public byte[] StringToByteArray(string hex) + { + hex = hex.Replace(" ", ""); + return Enumerable.Range(0, hex.Length) + .Where(x => x % 2 == 0) + .Select(x => Convert.ToByte(hex.Substring(x, 2), 16)) + .ToArray(); + } + + private int CheckForBytesAndGetAddress(byte[] ThisFileBytes, byte[] CheckThisBytes, int AddressOffset) + { + for (int i=0; i < ThisFileBytes.Length; i++) + { + bool FoundSameBytes = true; + for (int i2 = 0; i2 < CheckThisBytes.Length; i2++) + { + if (ThisFileBytes[i + i2] != CheckThisBytes[i2]) + { + FoundSameBytes = false; + i2 = CheckThisBytes.Length; + } + } + + if (FoundSameBytes) + { + return i + AddressOffset; + } + } + + return -1; + } +} diff --git a/Editortable.cs b/Editortable.cs index 10e5e1e..848a164 100644 --- a/Editortable.cs +++ b/Editortable.cs @@ -727,6 +727,7 @@ public class Editortable : DarkForm File.WriteAllBytes(Paath + @"\37805_RRB_A140.txt", FlashToolTest.Properties.Resources._37805_RRB_A140); File.WriteAllBytes(Paath + @"\37805_RWC_A620.txt", FlashToolTest.Properties.Resources._37805_RWC_A620); File.WriteAllBytes(Paath + @"\37805_S2K.txt", FlashToolTest.Properties.Resources._37805_S2K); + File.WriteAllBytes(Paath + @"\DefinitionsGuide.txt", FlashToolTest.Properties.Resources.DefinitionsGuide); } } diff --git a/FlashToolTest.csproj b/FlashToolTest.csproj index d42e18d..4332fbc 100644 --- a/FlashToolTest.csproj +++ b/FlashToolTest.csproj @@ -66,6 +66,7 @@ Component + @@ -156,6 +157,7 @@ + Always diff --git a/GForm_Main.cs b/GForm_Main.cs index e7c1e64..e454bf8 100644 --- a/GForm_Main.cs +++ b/GForm_Main.cs @@ -30,7 +30,7 @@ public class GForm_Main : DarkForm private DarkButton darkButton6; private DarkButton darkButton3; public Editortable Editortable_0; - public string Version = "v1.0.9"; + public string Version = "v1.1.0"; public GForm_Main() { @@ -48,6 +48,9 @@ public class GForm_Main : DarkForm Class_RWD.Load(ref GForm_Main_0); this.Text = this.Text + " (" + Version + ")"; + + Class_DefinitionMaker Class_DefinitionMaker_0 = new Class_DefinitionMaker(); + Class_DefinitionMaker_0.CreateDefinitionsFiles(); } @@ -1603,8 +1606,8 @@ public class GForm_Main : DarkForm this.darkLabel_8 = new DarkUI.Controls.DarkLabel(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.DarkgroupBox1 = new DarkUI.Controls.DarkGroupBox(); - this.darkButton4 = new DarkUI.Controls.DarkButton(); this.darkButton6 = new DarkUI.Controls.DarkButton(); + this.darkButton4 = new DarkUI.Controls.DarkButton(); this.darkGroupBox_0.SuspendLayout(); this.DarkgroupBox1.SuspendLayout(); this.SuspendLayout(); @@ -1614,7 +1617,7 @@ public class GForm_Main : DarkForm this.darkTextBox_0.Location = new System.Drawing.Point(218, 63); this.darkTextBox_0.Multiline = true; this.darkTextBox_0.Name = "darkTextBox_0"; - this.darkTextBox_0.Size = new System.Drawing.Size(461, 443); + this.darkTextBox_0.Size = new System.Drawing.Size(399, 443); this.darkTextBox_0.TabIndex = 55; this.darkTextBox_0.Text = "Honda CANBUS Tools"; // @@ -1852,7 +1855,7 @@ public class GForm_Main : DarkForm this.darkLabel_4.AutoSize = true; this.darkLabel_4.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.darkLabel_4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); - this.darkLabel_4.Location = new System.Drawing.Point(596, 509); + this.darkLabel_4.Location = new System.Drawing.Point(536, 509); this.darkLabel_4.Name = "darkLabel_4"; this.darkLabel_4.Size = new System.Drawing.Size(80, 25); this.darkLabel_4.TabIndex = 61; @@ -1874,7 +1877,7 @@ public class GForm_Main : DarkForm this.darkTextBox_1.Location = new System.Drawing.Point(294, 11); this.darkTextBox_1.Name = "darkTextBox_1"; this.darkTextBox_1.ReadOnly = true; - this.darkTextBox_1.Size = new System.Drawing.Size(385, 20); + this.darkTextBox_1.Size = new System.Drawing.Size(323, 20); this.darkTextBox_1.TabIndex = 63; // // darkTextBox_2 @@ -1882,14 +1885,14 @@ public class GForm_Main : DarkForm this.darkTextBox_2.Location = new System.Drawing.Point(294, 37); this.darkTextBox_2.Name = "darkTextBox_2"; this.darkTextBox_2.ReadOnly = true; - this.darkTextBox_2.Size = new System.Drawing.Size(385, 20); + this.darkTextBox_2.Size = new System.Drawing.Size(323, 20); this.darkTextBox_2.TabIndex = 64; // // darkProgressBar_0 // this.darkProgressBar_0.Location = new System.Drawing.Point(98, 537); this.darkProgressBar_0.Name = "darkProgressBar_0"; - this.darkProgressBar_0.Size = new System.Drawing.Size(581, 23); + this.darkProgressBar_0.Size = new System.Drawing.Size(519, 23); this.darkProgressBar_0.TabIndex = 67; // // darkLabel_7 @@ -1931,16 +1934,6 @@ public class GForm_Main : DarkForm this.DarkgroupBox1.TabStop = false; this.DarkgroupBox1.Text = "File Controls"; // - // darkButton4 - // - this.darkButton4.Checked = false; - this.darkButton4.Location = new System.Drawing.Point(6, 77); - this.darkButton4.Name = "darkButton4"; - this.darkButton4.Size = new System.Drawing.Size(192, 23); - this.darkButton4.TabIndex = 68; - this.darkButton4.Text = "Fix Checksums"; - this.darkButton4.Click += new System.EventHandler(this.darkButton4_Click); - // // darkButton6 // this.darkButton6.Checked = false; @@ -1951,11 +1944,21 @@ public class GForm_Main : DarkForm this.darkButton6.Text = "Open ROM Editor"; this.darkButton6.Click += new System.EventHandler(this.darkButton6_Click); // + // darkButton4 + // + this.darkButton4.Checked = false; + this.darkButton4.Location = new System.Drawing.Point(6, 77); + this.darkButton4.Name = "darkButton4"; + this.darkButton4.Size = new System.Drawing.Size(192, 23); + this.darkButton4.TabIndex = 68; + this.darkButton4.Text = "Fix Checksums"; + this.darkButton4.Click += new System.EventHandler(this.darkButton4_Click); + // // GForm_Main // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(694, 571); + this.ClientSize = new System.Drawing.Size(629, 571); this.Controls.Add(this.DarkgroupBox1); this.Controls.Add(this.darkLabel_8); this.Controls.Add(this.darkLabel_7); @@ -1975,7 +1978,8 @@ public class GForm_Main : DarkForm this.Controls.Add(this.darkLabel_2); this.Controls.Add(this.darkButton_0); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MinimumSize = new System.Drawing.Size(710, 573); + this.MaximizeBox = false; + this.MinimumSize = new System.Drawing.Size(645, 610); this.Name = "GForm_Main"; this.Text = "Honda CANBUS Tools"; this.Load += new System.EventHandler(this.GForm_Main_Load); diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs index 131edcc..10c51cf 100644 --- a/Properties/Resources.Designer.cs +++ b/Properties/Resources.Designer.cs @@ -89,5 +89,15 @@ namespace FlashToolTest.Properties { return ((byte[])(obj)); } } + + /// + /// Recherche une ressource localisée de type System.Byte[]. + /// + internal static byte[] DefinitionsGuide { + get { + object obj = ResourceManager.GetObject("DefinitionsGuide", resourceCulture); + return ((byte[])(obj)); + } + } } } diff --git a/Properties/Resources.resx b/Properties/Resources.resx index d9b3a2e..ef5d3c7 100644 --- a/Properties/Resources.resx +++ b/Properties/Resources.resx @@ -118,6 +118,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\bin\Debug\Definitions\DefinitionsGuide.txt;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + ..\bin\Debug\Definitions\37805-RRB-A140.txt;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089