From eef2caeb5b0ce1cb5635dfc9f359ba651f1c2c9c Mon Sep 17 00:00:00 2001 From: ReikoKitsune Date: Tue, 23 Feb 2016 23:21:07 +0300 Subject: [PATCH] About message. Removed unused references. --- src/NFirmwareEditor/MainWindow.Designer.cs | 22 ++++++++++++++++------ src/NFirmwareEditor/MainWindow.cs | 5 +++++ src/NFirmwareEditor/NFirmwareEditor.csproj | 6 ------ 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/NFirmwareEditor/MainWindow.Designer.cs b/src/NFirmwareEditor/MainWindow.Designer.cs index ab128d5..305c92d 100644 --- a/src/NFirmwareEditor/MainWindow.Designer.cs +++ b/src/NFirmwareEditor/MainWindow.Designer.cs @@ -50,6 +50,7 @@ private void InitializeComponent() this.shiftRightToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.encryptDecryptToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.AboutMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.MainStatusStrip = new System.Windows.Forms.StatusStrip(); this.StatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.DefinitionsComboBox = new System.Windows.Forms.ComboBox(); @@ -90,7 +91,8 @@ private void InitializeComponent() this.MainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem, this.EditMenuItem, - this.toolsToolStripMenuItem}); + this.toolsToolStripMenuItem, + this.AboutMenuItem}); this.MainMenuStrip.Location = new System.Drawing.Point(0, 0); this.MainMenuStrip.Name = "MainMenuStrip"; this.MainMenuStrip.Size = new System.Drawing.Size(784, 24); @@ -126,21 +128,21 @@ private void InitializeComponent() this.SaveEncryptedMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("SaveEncryptedMenuItem.Image"))); this.SaveEncryptedMenuItem.Name = "SaveEncryptedMenuItem"; this.SaveEncryptedMenuItem.ShortcutKeyDisplayString = "Ctrl + S"; - this.SaveEncryptedMenuItem.Size = new System.Drawing.Size(221, 22); + this.SaveEncryptedMenuItem.Size = new System.Drawing.Size(258, 22); this.SaveEncryptedMenuItem.Text = "Save Encrypted As..."; this.SaveEncryptedMenuItem.Click += new System.EventHandler(this.SaveEncryptedMenuItem_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(218, 6); + this.toolStripSeparator1.Size = new System.Drawing.Size(255, 6); // // OpenDecryptedMenuItem // this.OpenDecryptedMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("OpenDecryptedMenuItem.Image"))); this.OpenDecryptedMenuItem.Name = "OpenDecryptedMenuItem"; this.OpenDecryptedMenuItem.ShortcutKeyDisplayString = "Ctrl + E"; - this.OpenDecryptedMenuItem.Size = new System.Drawing.Size(221, 22); + this.OpenDecryptedMenuItem.Size = new System.Drawing.Size(258, 22); this.OpenDecryptedMenuItem.Text = "Open Decrypted"; this.OpenDecryptedMenuItem.Click += new System.EventHandler(this.OpenDecryptedMenuItem_Click); // @@ -157,13 +159,13 @@ private void InitializeComponent() // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(218, 6); + this.toolStripSeparator2.Size = new System.Drawing.Size(255, 6); // // ExitMenuItem // this.ExitMenuItem.Image = global::NFirmwareEditor.Properties.Resources.exit; this.ExitMenuItem.Name = "ExitMenuItem"; - this.ExitMenuItem.Size = new System.Drawing.Size(221, 22); + this.ExitMenuItem.Size = new System.Drawing.Size(258, 22); this.ExitMenuItem.Text = "Exit"; this.ExitMenuItem.Click += new System.EventHandler(this.ExitMenuItem_Click); // @@ -271,6 +273,13 @@ private void InitializeComponent() this.encryptDecryptToolStripMenuItem.Text = "Encrypt / Decrypt"; this.encryptDecryptToolStripMenuItem.Click += new System.EventHandler(this.encryptDecryptToolStripMenuItem_Click); // + // AboutMenuItem + // + this.AboutMenuItem.Name = "AboutMenuItem"; + this.AboutMenuItem.Size = new System.Drawing.Size(24, 20); + this.AboutMenuItem.Text = "?"; + this.AboutMenuItem.Click += new System.EventHandler(this.AboutMenuItem_Click); + // // MainStatusStrip // this.MainStatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -669,6 +678,7 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem shiftDownToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem shiftLeftToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem shiftRightToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem AboutMenuItem; } } diff --git a/src/NFirmwareEditor/MainWindow.cs b/src/NFirmwareEditor/MainWindow.cs index 8817be0..f8de713 100644 --- a/src/NFirmwareEditor/MainWindow.cs +++ b/src/NFirmwareEditor/MainWindow.cs @@ -294,6 +294,11 @@ private void ShiftRightMenuItem_Click(object sender, EventArgs e) ShiftRightButton_Click(null, null); } + private void AboutMenuItem_Click(object sender, EventArgs e) + { + InfoBox.Show("NFirmwareEditor v1.0\n\nFirmware resource editor for vape devices such as:\nEvic VTC Mini, Cuboid, RX200, PresaTC75W and so on...\n\nReikoKitsune © 2016"); + } + protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData.HasFlag(Keys.Control)) diff --git a/src/NFirmwareEditor/NFirmwareEditor.csproj b/src/NFirmwareEditor/NFirmwareEditor.csproj index 306a18a..ad59d73 100644 --- a/src/NFirmwareEditor/NFirmwareEditor.csproj +++ b/src/NFirmwareEditor/NFirmwareEditor.csproj @@ -39,13 +39,7 @@ - - - - - -