From 1f7f19c935527cf58bc19b3c18f629f00ae413f0 Mon Sep 17 00:00:00 2001 From: Cvtx Date: Tue, 3 Dec 2019 23:21:18 +0900 Subject: [PATCH] Added help, reset button, ui enchantments --- .gitignore | 2 +- BufferInput.Designer.cs | 2 +- BufferInput.cs | 14 +- Form1.Designer.cs | 1124 ++++++++++++++++++++++++--------------- Form1.cs | 372 ++++++++++++- 5 files changed, 1048 insertions(+), 466 deletions(-) diff --git a/.gitignore b/.gitignore index b3d11b3..4ce6fdd 100644 --- a/.gitignore +++ b/.gitignore @@ -183,7 +183,7 @@ PublishScripts/ # NuGet Packages *.nupkg # The packages folder can be ignored because of Package Restore -#**/[Pp]ackages/* +**/[Pp]ackages/* # except build/, which is used as an MSBuild target. !**/[Pp]ackages/build/ # Uncomment if necessary however generally it will be regenerated when needed diff --git a/BufferInput.Designer.cs b/BufferInput.Designer.cs index 4c09f2c..a3ea2a4 100644 --- a/BufferInput.Designer.cs +++ b/BufferInput.Designer.cs @@ -212,7 +212,7 @@ private void InitializeComponent() // this.BytesNumericUD.Location = new System.Drawing.Point(260, 13); this.BytesNumericUD.Maximum = new decimal(new int[] { - 16, + 10000, 0, 0, 0}); diff --git a/BufferInput.cs b/BufferInput.cs index 60009e3..ddb23c0 100644 --- a/BufferInput.cs +++ b/BufferInput.cs @@ -16,7 +16,7 @@ public partial class BufferInputForm : Form { private bool DealogIsOk = false; public byte[] buf { get; set; } - public byte BytesNum, RemainingNum; + public byte BytesNum, RemainingNum, count = 1; public BufferInputForm() { @@ -77,7 +77,17 @@ private void InputByteButton_Click_1(object sender, EventArgs e) buf[BytesNum - RemainingNum] = (byte)HexInput.Value; RemainingNum--; MsgScintilla.ReadOnly = false; - MsgScintilla.AppendText(((int)HexInput.Value).ToString("X") + " "); + if (count % 8 == 0) + { + MsgScintilla.AppendText(((int)HexInput.Value).ToString("X") + "\r\n"); + count = 1; + } + else + { + count++; + MsgScintilla.AppendText(((int)HexInput.Value).ToString("X") + " "); + } + MsgScintilla.ReadOnly = true; BytesLeftLabel.Text = RemainingNum.ToString(); HexInput.Value = 0; diff --git a/Form1.Designer.cs b/Form1.Designer.cs index 5121af5..2a2e4d9 100644 --- a/Form1.Designer.cs +++ b/Form1.Designer.cs @@ -30,23 +30,54 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.TopPanel = new System.Windows.Forms.Panel(); + this.HelpCheckBox = new System.Windows.Forms.CheckBox(); this.TopCrcPanel = new System.Windows.Forms.Panel(); + this.StartButton = new System.Windows.Forms.Button(); + this.HideRegButton = new System.Windows.Forms.Button(); + this.CrcSelector = new System.Windows.Forms.ComboBox(); this.RefOutLabel = new System.Windows.Forms.Label(); this.BitsNumUD = new System.Windows.Forms.NumericUpDown(); this.RefInLabel = new System.Windows.Forms.Label(); this.BitsLabel = new System.Windows.Forms.Label(); this.RefOutCB = new System.Windows.Forms.CheckBox(); this.RefInCB = new System.Windows.Forms.CheckBox(); - this.StartButton = new System.Windows.Forms.Button(); - this.HideRegButton = new System.Windows.Forms.Button(); - this.HidePolyButton = new System.Windows.Forms.Button(); - this.CrcSelector = new System.Windows.Forms.ComboBox(); this.panel2 = new System.Windows.Forms.Panel(); - this.msgScintilla = new ScintillaNET.Scintilla(); + this.panel6 = new System.Windows.Forms.Panel(); + this.HintLabel = new System.Windows.Forms.Label(); + this.StandartHint = new System.Windows.Forms.Label(); + this.HelpLabel = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.ControlPanel = new System.Windows.Forms.Panel(); + this.label1 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panel3 = new System.Windows.Forms.Panel(); + this.NextByteButton = new System.Windows.Forms.Button(); + this.CalcAllButton = new System.Windows.Forms.Button(); + this.NextStepButton = new System.Windows.Forms.Button(); + this.label6 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); this.scintillaAsm = new ScintillaNET.Scintilla(); + this.CommentPanel = new System.Windows.Forms.Panel(); + this.Commentary = new System.Windows.Forms.Label(); + this.CommentaryLabel = new System.Windows.Forms.Label(); + this.CrcPanel = new System.Windows.Forms.Panel(); + this.panel12 = new System.Windows.Forms.Panel(); + this.panel11 = new System.Windows.Forms.Panel(); + this.panel10 = new System.Windows.Forms.Panel(); + this.PolyLabel = new System.Windows.Forms.Label(); + this.PolyTextBox = new System.Windows.Forms.TextBox(); + this.panel7 = new System.Windows.Forms.Panel(); + this.XorOutLabel = new System.Windows.Forms.Label(); + this.XorOutTextBox = new System.Windows.Forms.TextBox(); + this.panel4 = new System.Windows.Forms.Panel(); + this.InitLabel = new System.Windows.Forms.Label(); + this.InitTextBox = new System.Windows.Forms.TextBox(); + this.panel1 = new System.Windows.Forms.Panel(); + this.msgScintilla = new ScintillaNET.Scintilla(); + this.msgPanel = new System.Windows.Forms.Panel(); + this.CodePanel = new System.Windows.Forms.Panel(); this.RegistersPanel = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.button1 = new System.Windows.Forms.Button(); this.panel9 = new System.Windows.Forms.Panel(); this.CxLabel = new System.Windows.Forms.Label(); this.CxDecLabel = new System.Windows.Forms.Label(); @@ -64,29 +95,6 @@ private void InitializeComponent() this.DecLabel = new System.Windows.Forms.Label(); this.HexLabel = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.label6 = new System.Windows.Forms.Label(); - this.NextStepButton = new System.Windows.Forms.Button(); - this.Commentary = new System.Windows.Forms.Label(); - this.CommentaryLabel = new System.Windows.Forms.Label(); - this.CrcPanel = new System.Windows.Forms.Panel(); - this.panel7 = new System.Windows.Forms.Panel(); - this.label16 = new System.Windows.Forms.Label(); - this.label17 = new System.Windows.Forms.Label(); - this.label18 = new System.Windows.Forms.Label(); - this.label19 = new System.Windows.Forms.Label(); - this.panel6 = new System.Windows.Forms.Panel(); - this.label4 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.label14 = new System.Windows.Forms.Label(); - this.label15 = new System.Windows.Forms.Label(); - this.XorOutTextBox = new System.Windows.Forms.TextBox(); - this.XorOutLabel = new System.Windows.Forms.Label(); - this.InitTextBox = new System.Windows.Forms.TextBox(); - this.InitLabel = new System.Windows.Forms.Label(); - this.PolyTextBox = new System.Windows.Forms.TextBox(); - this.PolyLabel = new System.Windows.Forms.Label(); this.toolTipRefIn = new System.Windows.Forms.ToolTip(this.components); this.toolTipRefOut = new System.Windows.Forms.ToolTip(this.components); this.toolTipStart = new System.Windows.Forms.ToolTip(this.components); @@ -100,65 +108,145 @@ private void InitializeComponent() this.toolTipBits = new System.Windows.Forms.ToolTip(this.components); this.toolTipHideFirst = new System.Windows.Forms.ToolTip(this.components); this.toolTipHideRegisters = new System.Windows.Forms.ToolTip(this.components); + this.button1 = new System.Windows.Forms.Button(); + this.label8 = new System.Windows.Forms.Label(); this.TopPanel.SuspendLayout(); this.TopCrcPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.BitsNumUD)).BeginInit(); this.panel2.SuspendLayout(); + this.panel6.SuspendLayout(); + this.ControlPanel.SuspendLayout(); + this.panel3.SuspendLayout(); + this.CommentPanel.SuspendLayout(); + this.CrcPanel.SuspendLayout(); + this.panel12.SuspendLayout(); + this.panel11.SuspendLayout(); + this.panel10.SuspendLayout(); + this.panel7.SuspendLayout(); + this.panel4.SuspendLayout(); + this.panel1.SuspendLayout(); this.RegistersPanel.SuspendLayout(); this.panel9.SuspendLayout(); this.panel8.SuspendLayout(); this.panel5.SuspendLayout(); - this.panel1.SuspendLayout(); - this.panel4.SuspendLayout(); - this.CrcPanel.SuspendLayout(); - this.panel7.SuspendLayout(); - this.panel6.SuspendLayout(); this.SuspendLayout(); // // TopPanel // this.TopPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(28)))), ((int)(((byte)(28))))); + this.TopPanel.Controls.Add(this.HelpCheckBox); this.TopPanel.Controls.Add(this.TopCrcPanel); - this.TopPanel.Controls.Add(this.StartButton); this.TopPanel.Controls.Add(this.HideRegButton); - this.TopPanel.Controls.Add(this.HidePolyButton); this.TopPanel.Controls.Add(this.CrcSelector); this.TopPanel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.TopPanel.ForeColor = System.Drawing.Color.Black; this.TopPanel.Location = new System.Drawing.Point(0, 0); this.TopPanel.Name = "TopPanel"; - this.TopPanel.Size = new System.Drawing.Size(806, 45); + this.TopPanel.Size = new System.Drawing.Size(686, 45); this.TopPanel.TabIndex = 0; // + // HelpCheckBox + // + this.HelpCheckBox.AutoSize = true; + this.HelpCheckBox.Checked = true; + this.HelpCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; + this.HelpCheckBox.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.HelpCheckBox.ForeColor = System.Drawing.Color.White; + this.HelpCheckBox.Location = new System.Drawing.Point(539, 16); + this.HelpCheckBox.Name = "HelpCheckBox"; + this.HelpCheckBox.Size = new System.Drawing.Size(128, 17); + this.HelpCheckBox.TabIndex = 16; + this.HelpCheckBox.TabStop = false; + this.HelpCheckBox.Text = "Включить справку?"; + this.HelpCheckBox.UseVisualStyleBackColor = true; + this.HelpCheckBox.CheckedChanged += new System.EventHandler(this.HelpCheckBox_CheckedChanged); + this.HelpCheckBox.MouseEnter += new System.EventHandler(this.HelpCheckBox_MouseEnter); + this.HelpCheckBox.MouseLeave += new System.EventHandler(this.HelpCheckBox_MouseLeave); + // // TopCrcPanel // this.TopCrcPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(28)))), ((int)(((byte)(28))))); - this.TopCrcPanel.Controls.Add(this.RefOutLabel); - this.TopCrcPanel.Controls.Add(this.BitsNumUD); - this.TopCrcPanel.Controls.Add(this.RefInLabel); - this.TopCrcPanel.Controls.Add(this.BitsLabel); - this.TopCrcPanel.Controls.Add(this.RefOutCB); - this.TopCrcPanel.Controls.Add(this.RefInCB); - this.TopCrcPanel.Location = new System.Drawing.Point(221, 0); + this.TopCrcPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TopCrcPanel.Controls.Add(this.StartButton); + this.TopCrcPanel.Location = new System.Drawing.Point(182, 0); this.TopCrcPanel.Name = "TopCrcPanel"; - this.TopCrcPanel.Size = new System.Drawing.Size(428, 45); + this.TopCrcPanel.Size = new System.Drawing.Size(181, 47); this.TopCrcPanel.TabIndex = 2; // + // StartButton + // + this.StartButton.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); + this.StartButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(10))))); + this.StartButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22))))); + this.StartButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.StartButton.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.StartButton.ForeColor = System.Drawing.Color.White; + this.StartButton.Location = new System.Drawing.Point(44, 6); + this.StartButton.Name = "StartButton"; + this.StartButton.Size = new System.Drawing.Size(83, 32); + this.StartButton.TabIndex = 6; + this.StartButton.TabStop = false; + this.StartButton.Text = "Начать"; + this.StartButton.UseVisualStyleBackColor = true; + this.StartButton.Click += new System.EventHandler(this.StartButton_Click); + this.StartButton.MouseEnter += new System.EventHandler(this.StartButton_MouseEnter); + this.StartButton.MouseLeave += new System.EventHandler(this.StartButton_MouseLeave); + // + // HideRegButton + // + this.HideRegButton.BackColor = System.Drawing.Color.Transparent; + this.HideRegButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.HideRegButton.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); + this.HideRegButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(10))))); + this.HideRegButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22))))); + this.HideRegButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.HideRegButton.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.HideRegButton.ForeColor = System.Drawing.Color.White; + this.HideRegButton.Location = new System.Drawing.Point(395, 10); + this.HideRegButton.Name = "HideRegButton"; + this.HideRegButton.Size = new System.Drawing.Size(105, 23); + this.HideRegButton.TabIndex = 3; + this.HideRegButton.TabStop = false; + this.HideRegButton.Text = "Классификация"; + this.HideRegButton.UseVisualStyleBackColor = false; + this.HideRegButton.Click += new System.EventHandler(this.HideRegButton_Click); + this.HideRegButton.MouseEnter += new System.EventHandler(this.HideRegButton_MouseEnter); + // + // CrcSelector + // + this.CrcSelector.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(37)))), ((int)(((byte)(38))))); + this.CrcSelector.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CrcSelector.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.CrcSelector.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.CrcSelector.ForeColor = System.Drawing.Color.White; + this.CrcSelector.FormattingEnabled = true; + this.CrcSelector.Items.AddRange(new object[] { + "CRC-16 / MODBUS"}); + this.CrcSelector.Location = new System.Drawing.Point(30, 12); + this.CrcSelector.Name = "CrcSelector"; + this.CrcSelector.Size = new System.Drawing.Size(121, 21); + this.CrcSelector.TabIndex = 1; + this.CrcSelector.TabStop = false; + this.CrcSelector.SelectedIndexChanged += new System.EventHandler(this.CrcSelector_SelectedIndexChanged_1); + this.CrcSelector.DropDownClosed += new System.EventHandler(this.CrcSelector_DropDownClosed); + this.CrcSelector.MouseEnter += new System.EventHandler(this.CrcSelector_MouseEnter); + // // RefOutLabel // this.RefOutLabel.AutoSize = true; this.RefOutLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.RefOutLabel.ForeColor = System.Drawing.Color.White; - this.RefOutLabel.Location = new System.Drawing.Point(356, 12); + this.RefOutLabel.Location = new System.Drawing.Point(26, 5); this.RefOutLabel.Name = "RefOutLabel"; this.RefOutLabel.Size = new System.Drawing.Size(59, 21); this.RefOutLabel.TabIndex = 11; this.RefOutLabel.Text = "RefOut"; + this.RefOutLabel.MouseEnter += new System.EventHandler(this.RefOutLabel_MouseEnter); // // BitsNumUD // this.BitsNumUD.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.BitsNumUD.Location = new System.Drawing.Point(128, 12); + this.BitsNumUD.Location = new System.Drawing.Point(94, 8); this.BitsNumUD.Maximum = new decimal(new int[] { 64, 0, @@ -183,29 +271,31 @@ private void InitializeComponent() this.RefInLabel.AutoSize = true; this.RefInLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.RefInLabel.ForeColor = System.Drawing.Color.White; - this.RefInLabel.Location = new System.Drawing.Point(279, 12); + this.RefInLabel.Location = new System.Drawing.Point(27, 6); this.RefInLabel.Name = "RefInLabel"; this.RefInLabel.Size = new System.Drawing.Size(46, 21); this.RefInLabel.TabIndex = 10; this.RefInLabel.Text = "RefIn"; + this.RefInLabel.MouseEnter += new System.EventHandler(this.RefInLabel_MouseEnter); // // BitsLabel // this.BitsLabel.AutoSize = true; this.BitsLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.BitsLabel.ForeColor = System.Drawing.Color.White; - this.BitsLabel.Location = new System.Drawing.Point(13, 12); + this.BitsLabel.Location = new System.Drawing.Point(3, 8); this.BitsLabel.Name = "BitsLabel"; this.BitsLabel.Size = new System.Drawing.Size(82, 21); this.BitsLabel.TabIndex = 5; this.BitsLabel.Text = "Bits (1..64)"; + this.BitsLabel.MouseEnter += new System.EventHandler(this.BitsLabel_MouseEnter); // // RefOutCB // this.RefOutCB.AutoSize = true; this.RefOutCB.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.RefOutCB.ForeColor = System.Drawing.Color.White; - this.RefOutCB.Location = new System.Drawing.Point(335, 17); + this.RefOutCB.Location = new System.Drawing.Point(5, 9); this.RefOutCB.Name = "RefOutCB"; this.RefOutCB.Size = new System.Drawing.Size(15, 14); this.RefOutCB.TabIndex = 12; @@ -216,113 +306,478 @@ private void InitializeComponent() this.RefInCB.AutoSize = true; this.RefInCB.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.RefInCB.ForeColor = System.Drawing.Color.White; - this.RefInCB.Location = new System.Drawing.Point(255, 17); + this.RefInCB.Location = new System.Drawing.Point(3, 10); this.RefInCB.Name = "RefInCB"; this.RefInCB.Size = new System.Drawing.Size(15, 14); this.RefInCB.TabIndex = 11; this.RefInCB.UseVisualStyleBackColor = true; // - // StartButton - // - this.StartButton.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.StartButton.ForeColor = System.Drawing.Color.Black; - this.StartButton.Location = new System.Drawing.Point(672, 12); - this.StartButton.Name = "StartButton"; - this.StartButton.Size = new System.Drawing.Size(55, 23); - this.StartButton.TabIndex = 6; - this.StartButton.Text = "Начать"; - this.StartButton.UseVisualStyleBackColor = true; - this.StartButton.Click += new System.EventHandler(this.StartButton_Click); - // - // HideRegButton - // - this.HideRegButton.BackColor = System.Drawing.Color.White; - this.HideRegButton.BackgroundImage = global::CRC.Properties.Resources.down_arrow; - this.HideRegButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.HideRegButton.Location = new System.Drawing.Point(772, 12); - this.HideRegButton.Name = "HideRegButton"; - this.HideRegButton.Size = new System.Drawing.Size(23, 23); - this.HideRegButton.TabIndex = 3; - this.HideRegButton.UseVisualStyleBackColor = false; - this.HideRegButton.Click += new System.EventHandler(this.HideRegButton_Click); - // - // HidePolyButton - // - this.HidePolyButton.BackColor = System.Drawing.Color.White; - this.HidePolyButton.BackgroundImage = global::CRC.Properties.Resources.down_arrow; - this.HidePolyButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.HidePolyButton.Location = new System.Drawing.Point(743, 12); - this.HidePolyButton.Name = "HidePolyButton"; - this.HidePolyButton.Size = new System.Drawing.Size(23, 23); - this.HidePolyButton.TabIndex = 2; - this.HidePolyButton.UseVisualStyleBackColor = false; - this.HidePolyButton.Click += new System.EventHandler(this.HidePolyButton_Click); - // - // CrcSelector - // - this.CrcSelector.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.CrcSelector.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.CrcSelector.ForeColor = System.Drawing.Color.Black; - this.CrcSelector.FormattingEnabled = true; - this.CrcSelector.Items.AddRange(new object[] { - "Custom", - "CRC-16 / MODBUS"}); - this.CrcSelector.Location = new System.Drawing.Point(12, 12); - this.CrcSelector.Name = "CrcSelector"; - this.CrcSelector.Size = new System.Drawing.Size(121, 21); - this.CrcSelector.TabIndex = 1; - this.CrcSelector.SelectedIndexChanged += new System.EventHandler(this.CrcSelector_SelectedIndexChanged_1); - // // panel2 // this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(37)))), ((int)(((byte)(38))))); - this.panel2.Controls.Add(this.msgScintilla); + this.panel2.Controls.Add(this.panel6); + this.panel2.Controls.Add(this.HelpLabel); + this.panel2.Controls.Add(this.label7); + this.panel2.Controls.Add(this.label4); + this.panel2.Controls.Add(this.ControlPanel); this.panel2.Controls.Add(this.scintillaAsm); + this.panel2.Controls.Add(this.CommentPanel); + this.panel2.Controls.Add(this.TopPanel); + this.panel2.Controls.Add(this.msgScintilla); + this.panel2.Controls.Add(this.msgPanel); + this.panel2.Controls.Add(this.CodePanel); this.panel2.Controls.Add(this.RegistersPanel); - this.panel2.Controls.Add(this.panel1); this.panel2.Controls.Add(this.CrcPanel); - this.panel2.Controls.Add(this.TopPanel); this.panel2.Location = new System.Drawing.Point(0, 0); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(806, 566); + this.panel2.Size = new System.Drawing.Size(695, 566); this.panel2.TabIndex = 1; // - // msgScintilla + // panel6 // - this.msgScintilla.AutoCMaxHeight = 9; - this.msgScintilla.CaretLineBackColor = System.Drawing.Color.Black; - this.msgScintilla.CaretLineVisible = true; - this.msgScintilla.Enabled = false; - this.msgScintilla.HScrollBar = false; - this.msgScintilla.Location = new System.Drawing.Point(270, 161); - this.msgScintilla.Name = "msgScintilla"; - this.msgScintilla.ReadOnly = true; - this.msgScintilla.Size = new System.Drawing.Size(137, 338); - this.msgScintilla.TabIndex = 9; - this.msgScintilla.VScrollBar = false; + this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel6.Controls.Add(this.HintLabel); + this.panel6.Controls.Add(this.StandartHint); + this.panel6.Location = new System.Drawing.Point(424, 164); + this.panel6.Name = "panel6"; + this.panel6.Size = new System.Drawing.Size(243, 179); + this.panel6.TabIndex = 13; + // + // HintLabel + // + this.HintLabel.AutoSize = true; + this.HintLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.HintLabel.ForeColor = System.Drawing.Color.White; + this.HintLabel.Location = new System.Drawing.Point(14, 46); + this.HintLabel.Name = "HintLabel"; + this.HintLabel.Size = new System.Drawing.Size(0, 17); + this.HintLabel.TabIndex = 16; + // + // StandartHint + // + this.StandartHint.AutoSize = true; + this.StandartHint.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.StandartHint.ForeColor = System.Drawing.Color.White; + this.StandartHint.Location = new System.Drawing.Point(14, 46); + this.StandartHint.Name = "StandartHint"; + this.StandartHint.Size = new System.Drawing.Size(205, 68); + this.StandartHint.TabIndex = 15; + this.StandartHint.Text = "Наведитесь мышкой на элемент \r\nинтерфейса, чтобы получить \r\nкраткую справку о нем" + + "\r\n\r\n"; + // + // HelpLabel + // + this.HelpLabel.AutoSize = true; + this.HelpLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.HelpLabel.ForeColor = System.Drawing.Color.White; + this.HelpLabel.Location = new System.Drawing.Point(508, 130); + this.HelpLabel.Name = "HelpLabel"; + this.HelpLabel.Size = new System.Drawing.Size(70, 21); + this.HelpLabel.TabIndex = 11; + this.HelpLabel.Text = "Справка"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label7.ForeColor = System.Drawing.Color.White; + this.label7.Location = new System.Drawing.Point(293, 130); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(94, 21); + this.label7.TabIndex = 12; + this.label7.Text = "Сообщение"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label4.ForeColor = System.Drawing.Color.White; + this.label4.Location = new System.Drawing.Point(77, 130); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(129, 21); + this.label4.TabIndex = 11; + this.label4.Text = "Код на Assembly"; + // + // ControlPanel + // + this.ControlPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.ControlPanel.Controls.Add(this.label8); + this.ControlPanel.Controls.Add(this.label1); + this.ControlPanel.Controls.Add(this.label5); + this.ControlPanel.Controls.Add(this.panel3); + this.ControlPanel.Controls.Add(this.label6); + this.ControlPanel.Controls.Add(this.label3); + this.ControlPanel.Location = new System.Drawing.Point(424, 339); + this.ControlPanel.Name = "ControlPanel"; + this.ControlPanel.Size = new System.Drawing.Size(243, 167); + this.ControlPanel.TabIndex = 8; + this.ControlPanel.MouseEnter += new System.EventHandler(this.ControlPanel_MouseEnter); + this.ControlPanel.MouseLeave += new System.EventHandler(this.ControlPanel_MouseLeave); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label1.ForeColor = System.Drawing.Color.White; + this.label1.Location = new System.Drawing.Point(14, 89); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(130, 17); + this.label1.TabIndex = 28; + this.label1.Text = "Рассчитать до конца"; + this.label1.MouseEnter += new System.EventHandler(this.label1_MouseEnter); + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label5.ForeColor = System.Drawing.Color.White; + this.label5.Location = new System.Drawing.Point(14, 61); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(156, 17); + this.label5.TabIndex = 15; + this.label5.Text = "Рассчитать текущий байт"; + this.label5.MouseEnter += new System.EventHandler(this.label5_MouseEnter); + // + // panel3 + // + this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel3.Controls.Add(this.button1); + this.panel3.Controls.Add(this.NextByteButton); + this.panel3.Controls.Add(this.CalcAllButton); + this.panel3.Controls.Add(this.NextStepButton); + this.panel3.Location = new System.Drawing.Point(179, -1); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(63, 167); + this.panel3.TabIndex = 11; + this.panel3.MouseEnter += new System.EventHandler(this.panel3_MouseEnter); + this.panel3.MouseLeave += new System.EventHandler(this.panel3_MouseLeave); + // + // NextByteButton + // + this.NextByteButton.BackColor = System.Drawing.Color.Transparent; + this.NextByteButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.NextByteButton.Enabled = false; + this.NextByteButton.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); + this.NextByteButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(10))))); + this.NextByteButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22))))); + this.NextByteButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.NextByteButton.ForeColor = System.Drawing.Color.White; + this.NextByteButton.Location = new System.Drawing.Point(13, 56); + this.NextByteButton.Name = "NextByteButton"; + this.NextByteButton.Size = new System.Drawing.Size(38, 23); + this.NextByteButton.TabIndex = 10; + this.NextByteButton.TabStop = false; + this.NextByteButton.Text = ">>"; + this.NextByteButton.UseVisualStyleBackColor = false; + this.NextByteButton.Click += new System.EventHandler(this.NextByteButton_Click); + this.NextByteButton.MouseEnter += new System.EventHandler(this.button2_MouseEnter); + this.NextByteButton.MouseLeave += new System.EventHandler(this.button2_MouseLeave); + // + // CalcAllButton + // + this.CalcAllButton.BackColor = System.Drawing.Color.Transparent; + this.CalcAllButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.CalcAllButton.Enabled = false; + this.CalcAllButton.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); + this.CalcAllButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(10))))); + this.CalcAllButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22))))); + this.CalcAllButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.CalcAllButton.ForeColor = System.Drawing.Color.White; + this.CalcAllButton.Location = new System.Drawing.Point(13, 87); + this.CalcAllButton.Name = "CalcAllButton"; + this.CalcAllButton.Size = new System.Drawing.Size(38, 23); + this.CalcAllButton.TabIndex = 15; + this.CalcAllButton.TabStop = false; + this.CalcAllButton.Text = ">>>"; + this.CalcAllButton.UseVisualStyleBackColor = false; + this.CalcAllButton.Click += new System.EventHandler(this.button1_Click); + this.CalcAllButton.MouseEnter += new System.EventHandler(this.button1_MouseEnter); + // + // NextStepButton + // + this.NextStepButton.BackColor = System.Drawing.Color.Transparent; + this.NextStepButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.NextStepButton.Enabled = false; + this.NextStepButton.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); + this.NextStepButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(10))))); + this.NextStepButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22))))); + this.NextStepButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.NextStepButton.ForeColor = System.Drawing.Color.White; + this.NextStepButton.Location = new System.Drawing.Point(13, 27); + this.NextStepButton.Name = "NextStepButton"; + this.NextStepButton.Size = new System.Drawing.Size(38, 23); + this.NextStepButton.TabIndex = 9; + this.NextStepButton.TabStop = false; + this.NextStepButton.Text = ">"; + this.NextStepButton.UseVisualStyleBackColor = false; + this.NextStepButton.Click += new System.EventHandler(this.NextStepButton_Click); + this.NextStepButton.MouseEnter += new System.EventHandler(this.NextStepButton_MouseEnter); + this.NextStepButton.MouseLeave += new System.EventHandler(this.NextStepButton_MouseLeave); + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label6.ForeColor = System.Drawing.Color.White; + this.label6.Location = new System.Drawing.Point(14, 33); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(106, 17); + this.label6.TabIndex = 14; + this.label6.Text = "Следующий шаг"; + this.label6.MouseEnter += new System.EventHandler(this.label6_MouseEnter); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(13, 6); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(150, 21); + this.label3.TabIndex = 10; + this.label3.Text = "Панель управления"; + this.label3.MouseEnter += new System.EventHandler(this.label3_MouseEnter); + this.label3.MouseLeave += new System.EventHandler(this.label3_MouseLeave); // // scintillaAsm // this.scintillaAsm.AutoCMaxHeight = 9; + this.scintillaAsm.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.scintillaAsm.CaretLineBackColor = System.Drawing.Color.Black; this.scintillaAsm.CaretLineVisible = true; this.scintillaAsm.Enabled = false; this.scintillaAsm.HScrollBar = false; this.scintillaAsm.Lexer = ScintillaNET.Lexer.Asm; - this.scintillaAsm.Location = new System.Drawing.Point(20, 161); + this.scintillaAsm.Location = new System.Drawing.Point(20, 164); this.scintillaAsm.Name = "scintillaAsm"; - this.scintillaAsm.Size = new System.Drawing.Size(231, 338); + this.scintillaAsm.Size = new System.Drawing.Size(231, 324); this.scintillaAsm.TabIndex = 7; this.scintillaAsm.Text = "\tmov crc, Init\r\n\tmov ax, crc\r\n\tmov bl, msgByte\r\n\txor ax, bx \r\n\tmov cx, 9\r\n@@L1:" + "\r\n\tdec cx\r\n\tjcxz @@L2\r\n\tshr ax, 1 \r\n\tjnc @@L1 \r\n\txor ax, $A001\r\n\tjmp @@L" + "1\r\n@@L2: \r\n\tmov crc, ax"; this.scintillaAsm.VScrollBar = false; // + // CommentPanel + // + this.CommentPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.CommentPanel.Controls.Add(this.Commentary); + this.CommentPanel.Controls.Add(this.CommentaryLabel); + this.CommentPanel.ForeColor = System.Drawing.Color.Transparent; + this.CommentPanel.Location = new System.Drawing.Point(-6, 505); + this.CommentPanel.Name = "CommentPanel"; + this.CommentPanel.Size = new System.Drawing.Size(692, 58); + this.CommentPanel.TabIndex = 2; + this.CommentPanel.MouseEnter += new System.EventHandler(this.CommentPanel_MouseEnter); + this.CommentPanel.MouseLeave += new System.EventHandler(this.CommentPanel_MouseLeave); + // + // Commentary + // + this.Commentary.AutoSize = true; + this.Commentary.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.Commentary.ForeColor = System.Drawing.Color.White; + this.Commentary.Location = new System.Drawing.Point(139, 15); + this.Commentary.Name = "Commentary"; + this.Commentary.Size = new System.Drawing.Size(16, 21); + this.Commentary.TabIndex = 8; + this.Commentary.Text = "-"; + // + // CommentaryLabel + // + this.CommentaryLabel.AutoSize = true; + this.CommentaryLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.CommentaryLabel.ForeColor = System.Drawing.Color.White; + this.CommentaryLabel.Location = new System.Drawing.Point(21, 15); + this.CommentaryLabel.Name = "CommentaryLabel"; + this.CommentaryLabel.Size = new System.Drawing.Size(112, 21); + this.CommentaryLabel.TabIndex = 7; + this.CommentaryLabel.Text = "Комментарий:"; + // + // CrcPanel + // + this.CrcPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(28)))), ((int)(((byte)(28))))); + this.CrcPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.CrcPanel.Controls.Add(this.panel12); + this.CrcPanel.Controls.Add(this.panel11); + this.CrcPanel.Controls.Add(this.panel7); + this.CrcPanel.Controls.Add(this.panel4); + this.CrcPanel.Controls.Add(this.panel10); + this.CrcPanel.Controls.Add(this.panel1); + this.CrcPanel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.CrcPanel.ForeColor = System.Drawing.Color.Black; + this.CrcPanel.Location = new System.Drawing.Point(-6, 45); + this.CrcPanel.Name = "CrcPanel"; + this.CrcPanel.Size = new System.Drawing.Size(692, 73); + this.CrcPanel.TabIndex = 1; + // + // panel12 + // + this.panel12.Controls.Add(this.RefOutCB); + this.panel12.Controls.Add(this.RefOutLabel); + this.panel12.Location = new System.Drawing.Point(527, 39); + this.panel12.Name = "panel12"; + this.panel12.Size = new System.Drawing.Size(102, 32); + this.panel12.TabIndex = 19; + this.panel12.MouseEnter += new System.EventHandler(this.panel12_MouseEnter); + this.panel12.MouseLeave += new System.EventHandler(this.panel12_MouseLeave); + // + // panel11 + // + this.panel11.Controls.Add(this.RefInCB); + this.panel11.Controls.Add(this.RefInLabel); + this.panel11.Location = new System.Drawing.Point(527, 5); + this.panel11.Name = "panel11"; + this.panel11.Size = new System.Drawing.Size(102, 36); + this.panel11.TabIndex = 18; + this.panel11.MouseEnter += new System.EventHandler(this.panel11_MouseEnter); + this.panel11.MouseLeave += new System.EventHandler(this.panel11_MouseLeave); + // + // panel10 + // + this.panel10.Controls.Add(this.PolyLabel); + this.panel10.Controls.Add(this.PolyTextBox); + this.panel10.Location = new System.Drawing.Point(22, 39); + this.panel10.Name = "panel10"; + this.panel10.Size = new System.Drawing.Size(220, 32); + this.panel10.TabIndex = 17; + this.panel10.MouseEnter += new System.EventHandler(this.panel10_MouseEnter); + this.panel10.MouseLeave += new System.EventHandler(this.panel10_MouseLeave); + // + // PolyLabel + // + this.PolyLabel.AutoSize = true; + this.PolyLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.PolyLabel.ForeColor = System.Drawing.Color.White; + this.PolyLabel.Location = new System.Drawing.Point(3, 5); + this.PolyLabel.Name = "PolyLabel"; + this.PolyLabel.Size = new System.Drawing.Size(79, 21); + this.PolyLabel.TabIndex = 6; + this.PolyLabel.Text = "Poly (Hex)"; + this.PolyLabel.MouseEnter += new System.EventHandler(this.PolyLabel_MouseEnter); + // + // PolyTextBox + // + this.PolyTextBox.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.PolyTextBox.ForeColor = System.Drawing.Color.Black; + this.PolyTextBox.Location = new System.Drawing.Point(91, 5); + this.PolyTextBox.Name = "PolyTextBox"; + this.PolyTextBox.Size = new System.Drawing.Size(120, 22); + this.PolyTextBox.TabIndex = 7; + // + // panel7 + // + this.panel7.Controls.Add(this.XorOutLabel); + this.panel7.Controls.Add(this.XorOutTextBox); + this.panel7.Location = new System.Drawing.Point(265, 39); + this.panel7.Name = "panel7"; + this.panel7.Size = new System.Drawing.Size(237, 33); + this.panel7.TabIndex = 16; + this.panel7.MouseEnter += new System.EventHandler(this.panel7_MouseEnter); + this.panel7.MouseLeave += new System.EventHandler(this.panel7_MouseLeave); + // + // XorOutLabel + // + this.XorOutLabel.AutoSize = true; + this.XorOutLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.XorOutLabel.ForeColor = System.Drawing.Color.White; + this.XorOutLabel.Location = new System.Drawing.Point(3, 5); + this.XorOutLabel.Name = "XorOutLabel"; + this.XorOutLabel.Size = new System.Drawing.Size(100, 21); + this.XorOutLabel.TabIndex = 10; + this.XorOutLabel.Text = "XorOut (Hex)"; + this.XorOutLabel.MouseEnter += new System.EventHandler(this.XorOutLabel_MouseEnter); + // + // XorOutTextBox + // + this.XorOutTextBox.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.XorOutTextBox.ForeColor = System.Drawing.Color.Black; + this.XorOutTextBox.Location = new System.Drawing.Point(109, 5); + this.XorOutTextBox.Name = "XorOutTextBox"; + this.XorOutTextBox.Size = new System.Drawing.Size(120, 22); + this.XorOutTextBox.TabIndex = 11; + // + // panel4 + // + this.panel4.Controls.Add(this.InitLabel); + this.panel4.Controls.Add(this.InitTextBox); + this.panel4.Location = new System.Drawing.Point(265, 4); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(237, 37); + this.panel4.TabIndex = 15; + this.panel4.MouseEnter += new System.EventHandler(this.panel4_MouseEnter); + this.panel4.MouseLeave += new System.EventHandler(this.panel4_MouseLeave); + // + // InitLabel + // + this.InitLabel.AutoSize = true; + this.InitLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.InitLabel.ForeColor = System.Drawing.Color.White; + this.InitLabel.Location = new System.Drawing.Point(3, 8); + this.InitLabel.Name = "InitLabel"; + this.InitLabel.Size = new System.Drawing.Size(72, 21); + this.InitLabel.TabIndex = 8; + this.InitLabel.Text = "Init (Hex)"; + this.InitLabel.MouseEnter += new System.EventHandler(this.InitLabel_MouseEnter); + // + // InitTextBox + // + this.InitTextBox.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.InitTextBox.ForeColor = System.Drawing.Color.Black; + this.InitTextBox.Location = new System.Drawing.Point(109, 8); + this.InitTextBox.Name = "InitTextBox"; + this.InitTextBox.Size = new System.Drawing.Size(120, 22); + this.InitTextBox.TabIndex = 9; + // + // panel1 + // + this.panel1.Controls.Add(this.BitsLabel); + this.panel1.Controls.Add(this.BitsNumUD); + this.panel1.Location = new System.Drawing.Point(22, 4); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(189, 37); + this.panel1.TabIndex = 14; + this.panel1.MouseEnter += new System.EventHandler(this.panel1_MouseEnter); + this.panel1.MouseLeave += new System.EventHandler(this.panel1_MouseLeave); + // + // msgScintilla + // + this.msgScintilla.AutoCMaxHeight = 9; + this.msgScintilla.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.msgScintilla.CaretLineBackColor = System.Drawing.Color.Black; + this.msgScintilla.CaretLineVisible = true; + this.msgScintilla.Enabled = false; + this.msgScintilla.HScrollBar = false; + this.msgScintilla.Location = new System.Drawing.Point(270, 164); + this.msgScintilla.Name = "msgScintilla"; + this.msgScintilla.ReadOnly = true; + this.msgScintilla.Size = new System.Drawing.Size(137, 325); + this.msgScintilla.TabIndex = 9; + this.msgScintilla.VScrollBar = false; + // + // msgPanel + // + this.msgPanel.BackColor = System.Drawing.Color.Transparent; + this.msgPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.msgPanel.Location = new System.Drawing.Point(270, 164); + this.msgPanel.Name = "msgPanel"; + this.msgPanel.Size = new System.Drawing.Size(137, 325); + this.msgPanel.TabIndex = 14; + this.msgPanel.MouseEnter += new System.EventHandler(this.msgPanel_MouseEnter); + this.msgPanel.MouseLeave += new System.EventHandler(this.msgPanel_MouseLeave); + // + // CodePanel + // + this.CodePanel.BackColor = System.Drawing.Color.Transparent; + this.CodePanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.CodePanel.Location = new System.Drawing.Point(20, 164); + this.CodePanel.Name = "CodePanel"; + this.CodePanel.Size = new System.Drawing.Size(231, 324); + this.CodePanel.TabIndex = 15; + this.CodePanel.MouseEnter += new System.EventHandler(this.CodePanel_MouseEnter); + this.CodePanel.MouseLeave += new System.EventHandler(this.CodePanel_MouseLeave); + // // RegistersPanel // this.RegistersPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.RegistersPanel.Controls.Add(this.label1); - this.RegistersPanel.Controls.Add(this.button1); this.RegistersPanel.Controls.Add(this.panel9); this.RegistersPanel.Controls.Add(this.panel8); this.RegistersPanel.Controls.Add(this.panel5); @@ -330,32 +785,11 @@ private void InitializeComponent() this.RegistersPanel.Controls.Add(this.DecLabel); this.RegistersPanel.Controls.Add(this.HexLabel); this.RegistersPanel.Controls.Add(this.label2); - this.RegistersPanel.Location = new System.Drawing.Point(-2, 80); + this.RegistersPanel.Location = new System.Drawing.Point(-1, 45); this.RegistersPanel.Name = "RegistersPanel"; - this.RegistersPanel.Size = new System.Drawing.Size(814, 66); + this.RegistersPanel.Size = new System.Drawing.Size(687, 73); this.RegistersPanel.TabIndex = 3; // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.label1.ForeColor = System.Drawing.Color.White; - this.label1.Location = new System.Drawing.Point(670, 8); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(130, 17); - this.label1.TabIndex = 28; - this.label1.Text = "Рассчитать до конца"; - // - // button1 - // - this.button1.Location = new System.Drawing.Point(701, 28); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 23); - this.button1.TabIndex = 15; - this.button1.Text = ">>"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // // panel9 // this.panel9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; @@ -363,7 +797,7 @@ private void InitializeComponent() this.panel9.Controls.Add(this.CxDecLabel); this.panel9.Location = new System.Drawing.Point(512, -1); this.panel9.Name = "panel9"; - this.panel9.Size = new System.Drawing.Size(151, 66); + this.panel9.Size = new System.Drawing.Size(174, 73); this.panel9.TabIndex = 27; // // CxLabel @@ -376,13 +810,15 @@ private void InitializeComponent() this.CxLabel.Size = new System.Drawing.Size(29, 21); this.CxLabel.TabIndex = 9; this.CxLabel.Text = "CX"; + this.CxLabel.MouseEnter += new System.EventHandler(this.CxLabel_MouseEnter); + this.CxLabel.MouseLeave += new System.EventHandler(this.CxLabel_MouseLeave); // // CxDecLabel // this.CxDecLabel.AutoSize = true; this.CxDecLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.CxDecLabel.ForeColor = System.Drawing.Color.White; - this.CxDecLabel.Location = new System.Drawing.Point(50, 24); + this.CxDecLabel.Location = new System.Drawing.Point(50, 25); this.CxDecLabel.Name = "CxDecLabel"; this.CxDecLabel.Size = new System.Drawing.Size(30, 17); this.CxDecLabel.TabIndex = 18; @@ -397,7 +833,7 @@ private void InitializeComponent() this.panel8.Controls.Add(this.BxBinLabel); this.panel8.Location = new System.Drawing.Point(362, -1); this.panel8.Name = "panel8"; - this.panel8.Size = new System.Drawing.Size(151, 66); + this.panel8.Size = new System.Drawing.Size(151, 73); this.panel8.TabIndex = 27; // // BxLabel @@ -410,13 +846,15 @@ private void InitializeComponent() this.BxLabel.Size = new System.Drawing.Size(28, 21); this.BxLabel.TabIndex = 9; this.BxLabel.Text = "BX"; + this.BxLabel.MouseEnter += new System.EventHandler(this.BxLabel_MouseEnter); + this.BxLabel.MouseLeave += new System.EventHandler(this.BxLabel_MouseLeave); // // BxHexLabel // this.BxHexLabel.AutoSize = true; this.BxHexLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.BxHexLabel.ForeColor = System.Drawing.Color.White; - this.BxHexLabel.Location = new System.Drawing.Point(50, 3); + this.BxHexLabel.Location = new System.Drawing.Point(50, 4); this.BxHexLabel.Name = "BxHexLabel"; this.BxHexLabel.Size = new System.Drawing.Size(30, 17); this.BxHexLabel.TabIndex = 17; @@ -427,7 +865,7 @@ private void InitializeComponent() this.BxDecLabel.AutoSize = true; this.BxDecLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.BxDecLabel.ForeColor = System.Drawing.Color.White; - this.BxDecLabel.Location = new System.Drawing.Point(50, 24); + this.BxDecLabel.Location = new System.Drawing.Point(50, 25); this.BxDecLabel.Name = "BxDecLabel"; this.BxDecLabel.Size = new System.Drawing.Size(30, 17); this.BxDecLabel.TabIndex = 18; @@ -438,7 +876,7 @@ private void InitializeComponent() this.BxBinLabel.AutoSize = true; this.BxBinLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.BxBinLabel.ForeColor = System.Drawing.Color.White; - this.BxBinLabel.Location = new System.Drawing.Point(50, 45); + this.BxBinLabel.Location = new System.Drawing.Point(50, 46); this.BxBinLabel.Name = "BxBinLabel"; this.BxBinLabel.Size = new System.Drawing.Size(25, 17); this.BxBinLabel.TabIndex = 19; @@ -453,7 +891,7 @@ private void InitializeComponent() this.panel5.Controls.Add(this.AxBinLabel); this.panel5.Location = new System.Drawing.Point(182, -1); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(181, 66); + this.panel5.Size = new System.Drawing.Size(181, 73); this.panel5.TabIndex = 26; // // AxLabel @@ -466,13 +904,15 @@ private void InitializeComponent() this.AxLabel.Size = new System.Drawing.Size(29, 21); this.AxLabel.TabIndex = 9; this.AxLabel.Text = "AX"; + this.AxLabel.MouseEnter += new System.EventHandler(this.AxLabel_MouseEnter); + this.AxLabel.MouseLeave += new System.EventHandler(this.AxLabel_MouseLeave); // // AxHexLabel // this.AxHexLabel.AutoSize = true; this.AxHexLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.AxHexLabel.ForeColor = System.Drawing.Color.White; - this.AxHexLabel.Location = new System.Drawing.Point(50, 3); + this.AxHexLabel.Location = new System.Drawing.Point(50, 4); this.AxHexLabel.Name = "AxHexLabel"; this.AxHexLabel.Size = new System.Drawing.Size(30, 17); this.AxHexLabel.TabIndex = 17; @@ -483,7 +923,7 @@ private void InitializeComponent() this.AxDecLabel.AutoSize = true; this.AxDecLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.AxDecLabel.ForeColor = System.Drawing.Color.White; - this.AxDecLabel.Location = new System.Drawing.Point(50, 24); + this.AxDecLabel.Location = new System.Drawing.Point(50, 25); this.AxDecLabel.Name = "AxDecLabel"; this.AxDecLabel.Size = new System.Drawing.Size(30, 17); this.AxDecLabel.TabIndex = 18; @@ -494,7 +934,7 @@ private void InitializeComponent() this.AxBinLabel.AutoSize = true; this.AxBinLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.AxBinLabel.ForeColor = System.Drawing.Color.White; - this.AxBinLabel.Location = new System.Drawing.Point(50, 45); + this.AxBinLabel.Location = new System.Drawing.Point(50, 46); this.AxBinLabel.Name = "AxBinLabel"; this.AxBinLabel.Size = new System.Drawing.Size(25, 17); this.AxBinLabel.TabIndex = 19; @@ -505,7 +945,7 @@ private void InitializeComponent() this.BinLabel.AutoSize = true; this.BinLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.BinLabel.ForeColor = System.Drawing.Color.White; - this.BinLabel.Location = new System.Drawing.Point(121, 45); + this.BinLabel.Location = new System.Drawing.Point(121, 46); this.BinLabel.Name = "BinLabel"; this.BinLabel.Size = new System.Drawing.Size(25, 17); this.BinLabel.TabIndex = 16; @@ -516,7 +956,7 @@ private void InitializeComponent() this.DecLabel.AutoSize = true; this.DecLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.DecLabel.ForeColor = System.Drawing.Color.White; - this.DecLabel.Location = new System.Drawing.Point(121, 24); + this.DecLabel.Location = new System.Drawing.Point(121, 25); this.DecLabel.Name = "DecLabel"; this.DecLabel.Size = new System.Drawing.Size(30, 17); this.DecLabel.TabIndex = 15; @@ -527,7 +967,7 @@ private void InitializeComponent() this.HexLabel.AutoSize = true; this.HexLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.HexLabel.ForeColor = System.Drawing.Color.White; - this.HexLabel.Location = new System.Drawing.Point(121, 3); + this.HexLabel.Location = new System.Drawing.Point(121, 4); this.HexLabel.Name = "HexLabel"; this.HexLabel.Size = new System.Drawing.Size(30, 17); this.HexLabel.TabIndex = 14; @@ -544,281 +984,79 @@ private void InitializeComponent() this.label2.TabIndex = 7; this.label2.Text = "Регистры"; // - // panel1 - // - this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel1.Controls.Add(this.panel4); - this.panel1.Controls.Add(this.Commentary); - this.panel1.Controls.Add(this.CommentaryLabel); - this.panel1.Location = new System.Drawing.Point(-6, 505); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(809, 58); - this.panel1.TabIndex = 2; - // - // panel4 - // - this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel4.Controls.Add(this.label6); - this.panel4.Controls.Add(this.NextStepButton); - this.panel4.Location = new System.Drawing.Point(574, -1); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(243, 61); - this.panel4.TabIndex = 8; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.label6.ForeColor = System.Drawing.Color.White; - this.label6.Location = new System.Drawing.Point(51, 19); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(106, 17); - this.label6.TabIndex = 14; - this.label6.Text = "Следующий шаг"; - // - // NextStepButton - // - this.NextStepButton.BackColor = System.Drawing.Color.White; - this.NextStepButton.BackgroundImage = global::CRC.Properties.Resources.right_arrow; - this.NextStepButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.NextStepButton.Enabled = false; - this.NextStepButton.Location = new System.Drawing.Point(173, 17); - this.NextStepButton.Name = "NextStepButton"; - this.NextStepButton.Size = new System.Drawing.Size(23, 23); - this.NextStepButton.TabIndex = 9; - this.NextStepButton.UseVisualStyleBackColor = false; - this.NextStepButton.Click += new System.EventHandler(this.NextStepButton_Click); - // - // Commentary - // - this.Commentary.AutoSize = true; - this.Commentary.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.Commentary.ForeColor = System.Drawing.Color.White; - this.Commentary.Location = new System.Drawing.Point(139, 15); - this.Commentary.Name = "Commentary"; - this.Commentary.Size = new System.Drawing.Size(16, 21); - this.Commentary.TabIndex = 8; - this.Commentary.Text = "-"; - // - // CommentaryLabel - // - this.CommentaryLabel.AutoSize = true; - this.CommentaryLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.CommentaryLabel.ForeColor = System.Drawing.Color.White; - this.CommentaryLabel.Location = new System.Drawing.Point(21, 15); - this.CommentaryLabel.Name = "CommentaryLabel"; - this.CommentaryLabel.Size = new System.Drawing.Size(112, 21); - this.CommentaryLabel.TabIndex = 7; - this.CommentaryLabel.Text = "Комментарий:"; - // - // CrcPanel - // - this.CrcPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(28)))), ((int)(((byte)(28))))); - this.CrcPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.CrcPanel.Controls.Add(this.panel7); - this.CrcPanel.Controls.Add(this.panel6); - this.CrcPanel.Controls.Add(this.XorOutTextBox); - this.CrcPanel.Controls.Add(this.XorOutLabel); - this.CrcPanel.Controls.Add(this.InitTextBox); - this.CrcPanel.Controls.Add(this.InitLabel); - this.CrcPanel.Controls.Add(this.PolyTextBox); - this.CrcPanel.Controls.Add(this.PolyLabel); - this.CrcPanel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.CrcPanel.ForeColor = System.Drawing.Color.Black; - this.CrcPanel.Location = new System.Drawing.Point(-6, 45); - this.CrcPanel.Name = "CrcPanel"; - this.CrcPanel.Size = new System.Drawing.Size(817, 36); - this.CrcPanel.TabIndex = 1; - // - // panel7 - // - this.panel7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel7.Controls.Add(this.label16); - this.panel7.Controls.Add(this.label17); - this.panel7.Controls.Add(this.label18); - this.panel7.Controls.Add(this.label19); - this.panel7.Location = new System.Drawing.Point(336, 34); - this.panel7.Name = "panel7"; - this.panel7.Size = new System.Drawing.Size(151, 66); - this.panel7.TabIndex = 27; - // - // label16 - // - this.label16.AutoSize = true; - this.label16.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.label16.ForeColor = System.Drawing.Color.White; - this.label16.Location = new System.Drawing.Point(5, 23); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(29, 21); - this.label16.TabIndex = 9; - this.label16.Text = "AX"; - // - // label17 - // - this.label17.AutoSize = true; - this.label17.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.label17.ForeColor = System.Drawing.Color.White; - this.label17.Location = new System.Drawing.Point(62, 3); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(30, 17); - this.label17.TabIndex = 17; - this.label17.Text = "Hex"; - // - // label18 - // - this.label18.AutoSize = true; - this.label18.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.label18.ForeColor = System.Drawing.Color.White; - this.label18.Location = new System.Drawing.Point(62, 24); - this.label18.Name = "label18"; - this.label18.Size = new System.Drawing.Size(30, 17); - this.label18.TabIndex = 18; - this.label18.Text = "Dec"; - // - // label19 - // - this.label19.AutoSize = true; - this.label19.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.label19.ForeColor = System.Drawing.Color.White; - this.label19.Location = new System.Drawing.Point(62, 45); - this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(25, 17); - this.label19.TabIndex = 19; - this.label19.Text = "Bin"; - // - // panel6 - // - this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel6.Controls.Add(this.label4); - this.panel6.Controls.Add(this.label13); - this.panel6.Controls.Add(this.label14); - this.panel6.Controls.Add(this.label15); - this.panel6.Location = new System.Drawing.Point(332, 34); - this.panel6.Name = "panel6"; - this.panel6.Size = new System.Drawing.Size(151, 66); - this.panel6.TabIndex = 27; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.label4.ForeColor = System.Drawing.Color.White; - this.label4.Location = new System.Drawing.Point(5, 23); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(29, 21); - this.label4.TabIndex = 9; - this.label4.Text = "AX"; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.label13.ForeColor = System.Drawing.Color.White; - this.label13.Location = new System.Drawing.Point(62, 3); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(30, 17); - this.label13.TabIndex = 17; - this.label13.Text = "Hex"; - // - // label14 - // - this.label14.AutoSize = true; - this.label14.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.label14.ForeColor = System.Drawing.Color.White; - this.label14.Location = new System.Drawing.Point(62, 24); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(30, 17); - this.label14.TabIndex = 18; - this.label14.Text = "Dec"; - // - // label15 - // - this.label15.AutoSize = true; - this.label15.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.label15.ForeColor = System.Drawing.Color.White; - this.label15.Location = new System.Drawing.Point(62, 45); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(25, 17); - this.label15.TabIndex = 19; - this.label15.Text = "Bin"; - // - // XorOutTextBox - // - this.XorOutTextBox.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.XorOutTextBox.ForeColor = System.Drawing.Color.Black; - this.XorOutTextBox.Location = new System.Drawing.Point(663, 4); - this.XorOutTextBox.Name = "XorOutTextBox"; - this.XorOutTextBox.Size = new System.Drawing.Size(120, 22); - this.XorOutTextBox.TabIndex = 11; - // - // XorOutLabel - // - this.XorOutLabel.AutoSize = true; - this.XorOutLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.XorOutLabel.ForeColor = System.Drawing.Color.White; - this.XorOutLabel.Location = new System.Drawing.Point(557, 5); - this.XorOutLabel.Name = "XorOutLabel"; - this.XorOutLabel.Size = new System.Drawing.Size(100, 21); - this.XorOutLabel.TabIndex = 10; - this.XorOutLabel.Text = "XorOut (Hex)"; - // - // InitTextBox - // - this.InitTextBox.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.InitTextBox.ForeColor = System.Drawing.Color.Black; - this.InitTextBox.Location = new System.Drawing.Point(376, 4); - this.InitTextBox.Name = "InitTextBox"; - this.InitTextBox.Size = new System.Drawing.Size(120, 22); - this.InitTextBox.TabIndex = 9; - // - // InitLabel - // - this.InitLabel.AutoSize = true; - this.InitLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.InitLabel.ForeColor = System.Drawing.Color.White; - this.InitLabel.Location = new System.Drawing.Point(296, 5); - this.InitLabel.Name = "InitLabel"; - this.InitLabel.Size = new System.Drawing.Size(72, 21); - this.InitLabel.TabIndex = 8; - this.InitLabel.Text = "Init (Hex)"; - // - // PolyTextBox - // - this.PolyTextBox.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.PolyTextBox.ForeColor = System.Drawing.Color.Black; - this.PolyTextBox.Location = new System.Drawing.Point(101, 4); - this.PolyTextBox.Name = "PolyTextBox"; - this.PolyTextBox.Size = new System.Drawing.Size(120, 22); - this.PolyTextBox.TabIndex = 7; - // - // PolyLabel + // button1 // - this.PolyLabel.AutoSize = true; - this.PolyLabel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.PolyLabel.ForeColor = System.Drawing.Color.White; - this.PolyLabel.Location = new System.Drawing.Point(13, 5); - this.PolyLabel.Name = "PolyLabel"; - this.PolyLabel.Size = new System.Drawing.Size(79, 21); - this.PolyLabel.TabIndex = 6; - this.PolyLabel.Text = "Poly (Hex)"; + this.button1.BackColor = System.Drawing.Color.Transparent; + this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); + this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(10))))); + this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22))))); + this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button1.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.button1.ForeColor = System.Drawing.Color.White; + this.button1.Location = new System.Drawing.Point(13, 128); + this.button1.Name = "button1"; + this.button1.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.button1.Size = new System.Drawing.Size(38, 34); + this.button1.TabIndex = 19; + this.button1.TabStop = false; + this.button1.Text = "↻"; + this.button1.TextAlign = System.Drawing.ContentAlignment.TopCenter; + this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click_1); + this.button1.MouseEnter += new System.EventHandler(this.button1_MouseEnter_1); + this.button1.MouseLeave += new System.EventHandler(this.button1_MouseLeave); + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label8.ForeColor = System.Drawing.Color.White; + this.label8.Location = new System.Drawing.Point(14, 137); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(120, 17); + this.label8.TabIndex = 29; + this.label8.Text = "Сброс программы"; + this.label8.MouseEnter += new System.EventHandler(this.label8_MouseEnter); // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(804, 561); + this.ClientSize = new System.Drawing.Size(679, 561); this.Controls.Add(this.panel2); - this.MaximumSize = new System.Drawing.Size(820, 600); - this.MinimumSize = new System.Drawing.Size(820, 600); + this.MaximumSize = new System.Drawing.Size(695, 600); + this.MinimumSize = new System.Drawing.Size(695, 600); this.Name = "MainForm"; this.Text = "CRC Step-by-Step"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); this.Load += new System.EventHandler(this.MainForm_Load); this.TopPanel.ResumeLayout(false); + this.TopPanel.PerformLayout(); this.TopCrcPanel.ResumeLayout(false); - this.TopCrcPanel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.BitsNumUD)).EndInit(); this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + this.panel6.ResumeLayout(false); + this.panel6.PerformLayout(); + this.ControlPanel.ResumeLayout(false); + this.ControlPanel.PerformLayout(); + this.panel3.ResumeLayout(false); + this.CommentPanel.ResumeLayout(false); + this.CommentPanel.PerformLayout(); + this.CrcPanel.ResumeLayout(false); + this.panel12.ResumeLayout(false); + this.panel12.PerformLayout(); + this.panel11.ResumeLayout(false); + this.panel11.PerformLayout(); + this.panel10.ResumeLayout(false); + this.panel10.PerformLayout(); + this.panel7.ResumeLayout(false); + this.panel7.PerformLayout(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); this.RegistersPanel.ResumeLayout(false); this.RegistersPanel.PerformLayout(); this.panel9.ResumeLayout(false); @@ -827,16 +1065,6 @@ private void InitializeComponent() this.panel8.PerformLayout(); this.panel5.ResumeLayout(false); this.panel5.PerformLayout(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.panel4.ResumeLayout(false); - this.panel4.PerformLayout(); - this.CrcPanel.ResumeLayout(false); - this.CrcPanel.PerformLayout(); - this.panel7.ResumeLayout(false); - this.panel7.PerformLayout(); - this.panel6.ResumeLayout(false); - this.panel6.PerformLayout(); this.ResumeLayout(false); } @@ -845,7 +1073,6 @@ private void InitializeComponent() private System.Windows.Forms.Panel TopPanel; private System.Windows.Forms.ComboBox CrcSelector; - private System.Windows.Forms.Button HidePolyButton; private System.Windows.Forms.Button HideRegButton; private System.Windows.Forms.Label BitsLabel; private System.Windows.Forms.Panel panel2; @@ -859,14 +1086,14 @@ private void InitializeComponent() private System.Windows.Forms.CheckBox RefOutCB; private System.Windows.Forms.CheckBox RefInCB; private System.Windows.Forms.Panel TopCrcPanel; - private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel CommentPanel; private System.Windows.Forms.Label Commentary; private System.Windows.Forms.Label CommentaryLabel; private System.Windows.Forms.Button StartButton; private ScintillaNET.Scintilla scintillaAsm; private System.Windows.Forms.Button NextStepButton; private System.Windows.Forms.Label label6; - private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel ControlPanel; private ScintillaNET.Scintilla msgScintilla; private System.Windows.Forms.Panel RegistersPanel; private System.Windows.Forms.Panel panel9; @@ -886,21 +1113,11 @@ private void InitializeComponent() private System.Windows.Forms.Label DecLabel; private System.Windows.Forms.Label HexLabel; private System.Windows.Forms.Label label2; - private System.Windows.Forms.Panel panel7; - private System.Windows.Forms.Label label16; - private System.Windows.Forms.Label label17; - private System.Windows.Forms.Label label18; - private System.Windows.Forms.Label label19; - private System.Windows.Forms.Panel panel6; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.Label label14; - private System.Windows.Forms.Label label15; private System.Windows.Forms.NumericUpDown BitsNumUD; private System.Windows.Forms.Label RefInLabel; private System.Windows.Forms.Label RefOutLabel; private System.Windows.Forms.Label label1; - private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button CalcAllButton; private System.Windows.Forms.ToolTip toolTipRefIn; private System.Windows.Forms.ToolTip toolTipRefOut; private System.Windows.Forms.ToolTip toolTipStart; @@ -914,6 +1131,27 @@ private void InitializeComponent() private System.Windows.Forms.ToolTip toolTipBits; private System.Windows.Forms.ToolTip toolTipHideFirst; private System.Windows.Forms.ToolTip toolTipHideRegisters; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Button NextByteButton; + private System.Windows.Forms.Panel panel6; + private System.Windows.Forms.Label HelpLabel; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label StandartHint; + private System.Windows.Forms.CheckBox HelpCheckBox; + private System.Windows.Forms.Label HintLabel; + private System.Windows.Forms.Panel msgPanel; + private System.Windows.Forms.Panel CodePanel; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel panel12; + private System.Windows.Forms.Panel panel11; + private System.Windows.Forms.Panel panel10; + private System.Windows.Forms.Panel panel7; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Button button1; } } diff --git a/Form1.cs b/Form1.cs index 2c356db..53936b5 100644 --- a/Form1.cs +++ b/Form1.cs @@ -15,11 +15,12 @@ namespace CRC { public partial class MainForm : Form { + private const string StandartHintString = "Наведитесь мышкой на элемент \r\nинтерфейса, чтобы получить \r\nкраткую справку о нем"; + private const string ActivateHintString = "Справка на данный момент \r\nнеактивна, подсказки \r\nотображаться не будут"; public byte[] buf = { 0 }; public byte len = 0; UInt16 crc = 0xFFFF; - bool ThreadIsAlive = false; - bool StepbyStep = true; + bool ThreadIsAlive = false, StepbyStep = true, ByBytes = false; private Thread CrcThread; public MainForm() @@ -32,7 +33,7 @@ private void FillCrc(int n) switch (n) { // Custom - case 0: + case 1: BitsNumUD.Value = 1; PolyTextBox.Clear(); InitTextBox.Clear(); @@ -51,7 +52,7 @@ private void FillCrc(int n) break; // CRC-16 / MODBUS - case 1: + case 0: BitsNumUD.Value = 16; PolyTextBox.Text = "8005"; InitTextBox.Text = "FFFF"; @@ -86,6 +87,7 @@ private void StartButton_Click(object sender, EventArgs e) var result = f.ShowDialog(); if (result == DialogResult.OK) { + Reset(); buf = f.buf; len = f.BytesNum; @@ -106,8 +108,12 @@ private void StartButton_Click(object sender, EventArgs e) msgScintilla.Lines[0].Goto(); msgScintilla.ReadOnly = true; + if (ThreadIsAlive) { CrcThread.Abort(); } + ThreadIsAlive = true; NextStepButton.Enabled = true; + CalcAllButton.Enabled = true; + NextByteButton.Enabled = true; CrcThread = new Thread(new ThreadStart(CrcCalc)); CrcThread.Start(); @@ -241,14 +247,13 @@ void CrcCalc() HighlightAsm(14); UpdComment("Сохранение результата в переменной CRC"); Sleep(); - + // байты закончились if (pos == (len-1)) { StepbyStep = true; - UpdComment("Вычисление CRC завершено След. шаг обнулит регистры"); + UpdComment("Вычисление CRC завершено, результат хранится в регистре AX"); Sleep(); - Reset(); } else { @@ -257,6 +262,11 @@ void CrcCalc() Sleep(); HighlightAsm(3); UpdComment("Занесение очередного байта сообщения в регистр bl"); + if (ByBytes) + { + StepbyStep = true; + ByBytes = false; + } HighlightByte((byte)(pos + 2)); Sleep(); UpdBx(buf[pos + 1]); @@ -285,7 +295,15 @@ void Reset() msgScintilla.CaretLineVisibleAlways = false; NextStepButton.Enabled = false; + CalcAllButton.Enabled = false; + NextByteButton.Enabled = false; + StepbyStep = true; + ByBytes = false; + + msgScintilla.ReadOnly = false; + msgScintilla.ClearAll(); + msgScintilla.ReadOnly = true; } void Sleep() { @@ -322,18 +340,18 @@ private void MainForm_Load(object sender, EventArgs e) InitSyntaxColoring(); InitNumberMargin(); CrcSelector.SelectedIndex = 0; - toolTipRefIn.SetToolTip(RefInLabel, "Флаг, указывающий на начало и направление вычислений. False — начиная со старшего значащего бита (MSB-first), или True — с младшего (LSB-first)"); - toolTipRefOut.SetToolTip(RefOutLabel, "Флаг, определяющий, инвертируется ли порядок битов регистра при входе на элемент XOR"); - toolTipStart.SetToolTip(StartButton, "Начать пошаговое вычислениие"); - toolTipPoly.SetToolTip(PolyLabel, "Производящий полином в HEX"); - toolTipInit.SetToolTip(InitLabel, "Стартовые данные, то есть значение регистра на момент начала вычислений"); - toolTipXorOut.SetToolTip(XorOutLabel, "Число, с которым складывается по модулю 2 полученный результат"); - toolTipAX.SetToolTip(AxLabel,"Регистр, в котором хранится CRC"); - toolTipBX.SetToolTip(BxLabel, "Регистр, в котором хранится очередной байт сообщения"); - toolTipCX.SetToolTip(CxLabel, "Регистр - счетчик для цикла"); - toolTipBits.SetToolTip(BitsLabel, "Степень порождающего контрольную сумму многочлена"); - toolTipHideFirst.SetToolTip(HidePolyButton, "Скрыть/Показать первую панель"); - toolTipHideRegisters.SetToolTip(HideRegButton, "Скрыть/Показать панель регистров"); + //toolTipRefIn.SetToolTip(RefInLabel, "Флаг, указывающий на начало и направление вычислений. False — начиная со старшего значащего бита (MSB-first), или True — с младшего (LSB-first)"); + //toolTipRefOut.SetToolTip(RefOutLabel, "Флаг, определяющий, инвертируется ли порядок битов регистра при входе на элемент XOR"); + //toolTipStart.SetToolTip(StartButton, "Начать пошаговое вычислениие"); + //toolTipPoly.SetToolTip(PolyLabel, "Производящий полином в HEX"); + //toolTipInit.SetToolTip(InitLabel, "Стартовые данные, то есть значение регистра на момент начала вычислений"); + //toolTipXorOut.SetToolTip(XorOutLabel, "Число, с которым складывается по модулю 2 полученный результат"); + //toolTipAX.SetToolTip(AxLabel,"Регистр, в котором хранится CRC"); + //toolTipBX.SetToolTip(BxLabel, "Регистр, в котором хранится очередной байт сообщения"); + //toolTipCX.SetToolTip(CxLabel, "Регистр - счетчик для цикла"); + //toolTipBits.SetToolTip(BitsLabel, "Степень порождающего контрольную сумму многочлена"); + ////toolTipHideFirst.SetToolTip(HidePolyButton, "Скрыть/Показать первую панель"); + //toolTipHideRegisters.SetToolTip(HideRegButton, "Скрыть/Показать панель информации о текущем стандарте CRC"); } @@ -443,5 +461,321 @@ private void button1_Click(object sender, EventArgs e) } CrcThread.Interrupt(); } + + private void CrcSelector_DropDownClosed(object sender, EventArgs e) + { + HelpLabel.Focus(); + } + + private void Hint(string message) + { + if (HelpCheckBox.Checked) { + HintLabel.Text = message; + StandartHint.Visible = false; + } + } + + private void NoHint() + { + if (HelpCheckBox.Checked) + { + HintLabel.Text = ""; + StandartHint.Visible = true; + } + } + + private void HelpCheckBox_CheckedChanged(object sender, EventArgs e) + { + if (HelpCheckBox.Checked == false) + { + HintLabel.Text = ""; + StandartHint.Visible = true; + StandartHint.Text = ActivateHintString; + } + else + { + HintLabel.Text = ""; + StandartHint.Visible = true; + StandartHint.Text = StandartHintString; + } + + } + + private void AxLabel_MouseEnter(object sender, EventArgs e) + { + Hint("Регистр, в котором хранится \r\nконтрольная сумма (CRC)"); + } + + private void AxLabel_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void BxLabel_MouseEnter(object sender, EventArgs e) + { + Hint("Регистр, в котором хранится \r\nбайт сообщения, который \r\nв данный момент обрабатывается"); + } + + private void BxLabel_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void CxLabel_MouseEnter(object sender, EventArgs e) + { + Hint("Регистр, в котором хранится \r\nсчетчик цикла, который \r\nуменьшается с каждой итерацией"); + } + + private void CxLabel_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void ControlPanel_MouseEnter(object sender, EventArgs e) + { + Hint("Панель управления содержит \r\nэлементы управления пошаговым \r\nвыполнением программы "); + } + + private void ControlPanel_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void NextStepButton_MouseEnter(object sender, EventArgs e) + { + Hint("Выполнить одну строку в коде \r\nпрограммы"); + } + + private void NextStepButton_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void button2_MouseEnter(object sender, EventArgs e) + { + Hint("Выполнить блок команд для \r\nрасчёта одного байта сообщения"); + } + + private void button2_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void button1_MouseEnter(object sender, EventArgs e) + { + Hint("Выполнить окончательный расчёт \r\nконтрольной суммы"); + } + + private void CommentPanel_MouseEnter(object sender, EventArgs e) + { + Hint("Комментарий к выделенной \r\nстроке в коде программы"); + } + + private void CommentPanel_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void msgPanel_MouseEnter(object sender, EventArgs e) + { + Hint("Сообщение, разбитое по байтам, \r\nкаждый из которых находится на \r\nотдельной строке"); + } + + private void msgPanel_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void CodePanel_MouseEnter(object sender, EventArgs e) + { + Hint("Код программы на языке \r\nассемблера, выполняющий расчёт \r\nкотрольной суммы"); + } + + private void CodePanel_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void label3_MouseEnter(object sender, EventArgs e) + { + Hint("Панель управления содержит \r\nэлементы управления пошаговым \r\nвыполнением программы "); + } + + private void panel3_MouseEnter(object sender, EventArgs e) + { + Hint("Панель управления содержит \r\nэлементы управления пошаговым \r\nвыполнением программы "); + } + + private void panel3_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void label3_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void label6_MouseEnter(object sender, EventArgs e) + { + Hint("Панель управления содержит \r\nэлементы управления пошаговым \r\nвыполнением программы "); + } + + private void label5_MouseEnter(object sender, EventArgs e) + { + Hint("Панель управления содержит \r\nэлементы управления пошаговым \r\nвыполнением программы "); + } + + private void label1_MouseEnter(object sender, EventArgs e) + { + Hint("Панель управления содержит \r\nэлементы управления пошаговым \r\nвыполнением программы "); + } + + private void HelpCheckBox_MouseEnter(object sender, EventArgs e) + { + Hint("Включить/отключить работу \r\nсправки"); + } + + private void HelpCheckBox_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void HideRegButton_MouseEnter(object sender, EventArgs e) + { + Hint("Показать/Скрыть панель с \r\nинформацией о выбранном \r\nстандарте CRC"); + } + + private void StartButton_MouseEnter(object sender, EventArgs e) + { + Hint("Начать работу с программой, \r\nпереход к вводу сообщения"); + } + + private void StartButton_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void CrcSelector_MouseEnter(object sender, EventArgs e) + { + Hint("Меню выбора стандарта CRC"); + } + + private void panel11_MouseEnter(object sender, EventArgs e) + { + Hint("Флаг, указывающий на начало и \r\nнаправление вычислений. \r\nFalse — начиная со старшего \r\nзначащего бита (MSB - first), \r\nили True — с младшего (LSB - first)"); + } + + private void panel11_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void panel12_MouseEnter(object sender, EventArgs e) + { + Hint("Флаг, определяющий, \r\nинвертируется ли порядок битов \r\nрегистра при входе на элемент XOR"); + } + + private void panel12_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void panel4_MouseEnter(object sender, EventArgs e) + { + Hint("Стартовые данные, то есть значение \r\nрегистра AX на момент начала \r\nвычислений"); + } + + private void panel4_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void panel7_MouseEnter(object sender, EventArgs e) + { + Hint("Число, с которым складывается \r\nпо модулю 2 полученный результат"); + } + + private void panel7_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void panel10_MouseEnter(object sender, EventArgs e) + { + Hint("Производящий полином в HEX"); + } + + private void panel10_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void panel1_MouseEnter(object sender, EventArgs e) + { + Hint("Степень порождающего \r\nконтрольную сумму многочлена"); + } + + private void panel1_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void BitsLabel_MouseEnter(object sender, EventArgs e) + { + Hint("Степень порождающего \r\nконтрольную сумму многочлена"); + } + + private void PolyLabel_MouseEnter(object sender, EventArgs e) + { + Hint("Производящий полином в HEX"); + } + + private void InitLabel_MouseEnter(object sender, EventArgs e) + { + Hint("Стартовые данные, то есть значение \r\nрегистра AX на момент начала \r\nвычислений"); + } + + private void XorOutLabel_MouseEnter(object sender, EventArgs e) + { + Hint("Число, с которым складывается \r\nпо модулю 2 полученный результат"); + } + + private void NextByteButton_Click(object sender, EventArgs e) + { + ByBytes = true; + StepbyStep = false; + CrcThread.Interrupt(); + } + + private void button1_Click_1(object sender, EventArgs e) + { + Reset(); + } + + private void button1_MouseEnter_1(object sender, EventArgs e) + { + Hint("Приводит программу к\r\nпервоначальному виду"); + } + + private void button1_MouseLeave(object sender, EventArgs e) + { + NoHint(); + } + + private void label8_MouseEnter(object sender, EventArgs e) + { + Hint("Панель управления содержит \r\nэлементы управления пошаговым \r\nвыполнением программы "); + } + + private void RefInLabel_MouseEnter(object sender, EventArgs e) + { + Hint("Флаг, указывающий на начало и \r\nнаправление вычислений. \r\nFalse — начиная со старшего \r\nзначащего бита (MSB - first), \r\nили True — с младшего (LSB - first)"); + } + + private void RefOutLabel_MouseEnter(object sender, EventArgs e) + { + Hint("Флаг, определяющий, \r\nинвертируется ли порядок битов \r\nрегистра при входе на элемент XOR"); + } } }