From 31fd912910bcd05c7f1a87b25f6867b50a60fe2e Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 10 Nov 2019 10:38:30 +0200 Subject: [PATCH] Added hint to "Encryption" settings tab --- Crypto Notepad/App.config | 2 +- .../Properties/Settings.Designer.cs | 6 ++--- Crypto Notepad/Properties/Settings.settings | 2 +- Crypto Notepad/SettingsForm.Designer.cs | 26 +++++++++---------- Crypto Notepad/SettingsForm.cs | 8 +++--- Crypto Notepad/SettingsForm.resx | 2 +- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/Crypto Notepad/App.config b/Crypto Notepad/App.config index c30728a..2fdf5ac 100644 --- a/Crypto Notepad/App.config +++ b/Crypto Notepad/App.config @@ -141,7 +141,7 @@ True - + True diff --git a/Crypto Notepad/Properties/Settings.Designer.cs b/Crypto Notepad/Properties/Settings.Designer.cs index fde5535..50810ee 100644 --- a/Crypto Notepad/Properties/Settings.Designer.cs +++ b/Crypto Notepad/Properties/Settings.Designer.cs @@ -587,12 +587,12 @@ public bool statusPanelSize { [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool encryptionToolTip { + public bool encryptionHint { get { - return ((bool)(this["encryptionToolTip"])); + return ((bool)(this["encryptionHint"])); } set { - this["encryptionToolTip"] = value; + this["encryptionHint"] = value; } } } diff --git a/Crypto Notepad/Properties/Settings.settings b/Crypto Notepad/Properties/Settings.settings index 0c7e1f6..7316bf2 100644 --- a/Crypto Notepad/Properties/Settings.settings +++ b/Crypto Notepad/Properties/Settings.settings @@ -131,7 +131,7 @@ True - + True diff --git a/Crypto Notepad/SettingsForm.Designer.cs b/Crypto Notepad/SettingsForm.Designer.cs index da08540..d6a8fb3 100644 --- a/Crypto Notepad/SettingsForm.Designer.cs +++ b/Crypto Notepad/SettingsForm.Designer.cs @@ -59,7 +59,7 @@ private void InitializeComponent() this.associateCheckBox = new System.Windows.Forms.CheckBox(); this.sendToCheckBox = new System.Windows.Forms.CheckBox(); this.encryptionTabPage = new System.Windows.Forms.TabPage(); - this.encryptionToolTipLabel = new System.Windows.Forms.Label(); + this.encryptionHintLabel = new System.Windows.Forms.Label(); this.passwordIterationsTextBox = new System.Windows.Forms.TextBox(); this.hashAlgorithmComboBox = new System.Windows.Forms.ComboBox(); this.passwordIterationsLabel = new System.Windows.Forms.Label(); @@ -437,7 +437,7 @@ private void InitializeComponent() // this.encryptionTabPage.BackColor = System.Drawing.SystemColors.Window; this.encryptionTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.encryptionTabPage.Controls.Add(this.encryptionToolTipLabel); + this.encryptionTabPage.Controls.Add(this.encryptionHintLabel); this.encryptionTabPage.Controls.Add(this.passwordIterationsTextBox); this.encryptionTabPage.Controls.Add(this.hashAlgorithmComboBox); this.encryptionTabPage.Controls.Add(this.passwordIterationsLabel); @@ -451,17 +451,17 @@ private void InitializeComponent() this.encryptionTabPage.TabIndex = 1; this.encryptionTabPage.Text = "enc"; // - // encryptionToolTipLabel + // encryptionHintLabel // - this.encryptionToolTipLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.encryptionToolTipLabel.Font = new System.Drawing.Font("Segoe UI", 8F); - this.encryptionToolTipLabel.Location = new System.Drawing.Point(9, 140); - this.encryptionToolTipLabel.Name = "encryptionToolTipLabel"; - this.encryptionToolTipLabel.Size = new System.Drawing.Size(223, 96); - this.encryptionToolTipLabel.TabIndex = 7; - this.encryptionToolTipLabel.Text = resources.GetString("encryptionToolTipLabel.Text"); - this.settingsToolTip.SetToolTip(this.encryptionToolTipLabel, "Left click to permanently hide this tooltip"); - this.encryptionToolTipLabel.MouseClick += new System.Windows.Forms.MouseEventHandler(this.EncryptionToolTipLabel_MouseClick); + this.encryptionHintLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.encryptionHintLabel.Font = new System.Drawing.Font("Segoe UI", 8F); + this.encryptionHintLabel.Location = new System.Drawing.Point(9, 140); + this.encryptionHintLabel.Name = "encryptionHintLabel"; + this.encryptionHintLabel.Size = new System.Drawing.Size(223, 96); + this.encryptionHintLabel.TabIndex = 7; + this.encryptionHintLabel.Text = resources.GetString("encryptionHintLabel.Text"); + this.settingsToolTip.SetToolTip(this.encryptionHintLabel, "Left click to permanently hide this tooltip"); + this.encryptionHintLabel.MouseClick += new System.Windows.Forms.MouseEventHandler(this.EncryptionHintLabel_MouseClick); // // passwordIterationsTextBox // @@ -952,7 +952,7 @@ private void InitializeComponent() private System.Windows.Forms.CheckBox statusPanelModifiedCheckBox; private System.Windows.Forms.CheckBox statusPanelSizeCheckBox; private System.Windows.Forms.GroupBox statusPanelLabelsGroupBox; - private System.Windows.Forms.Label encryptionToolTipLabel; + private System.Windows.Forms.Label encryptionHintLabel; private System.Windows.Forms.ToolTip settingsToolTip; } } \ No newline at end of file diff --git a/Crypto Notepad/SettingsForm.cs b/Crypto Notepad/SettingsForm.cs index ce350da..e581ab5 100644 --- a/Crypto Notepad/SettingsForm.cs +++ b/Crypto Notepad/SettingsForm.cs @@ -57,7 +57,7 @@ private void LoadSettings() statusPanelModifiedCheckBox.Checked = settings.statusPanelModified; statusPanelSizeCheckBox.Checked = settings.statusPanelSize; statusPanelLabelsGroupBox.Visible = settings.statusPanelVisible; - encryptionToolTipLabel.Visible = settings.encryptionToolTip; + encryptionHintLabel.Visible = settings.encryptionHint; } private static void AssociateExtension(string applicationExecutablePath, string extension) @@ -630,12 +630,12 @@ private void StatusPanelSizeCheckBox_Click(object sender, EventArgs e) #endregion - private void EncryptionToolTipLabel_MouseClick(object sender, MouseEventArgs e) + private void EncryptionHintLabel_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { - encryptionToolTipLabel.Visible = false; - settings.encryptionToolTip = false; + encryptionHintLabel.Visible = false; + settings.encryptionHint = false; } } } diff --git a/Crypto Notepad/SettingsForm.resx b/Crypto Notepad/SettingsForm.resx index 971dc00..7df8822 100644 --- a/Crypto Notepad/SettingsForm.resx +++ b/Crypto Notepad/SettingsForm.resx @@ -120,7 +120,7 @@ 17, 17 - + For the best balance of performance && security is recommended to use SHA512 Hash / 256 Key size / above 2000000 Password iterations. But caution, if you change this parameters you will not able to decrypt previously encrypted files with old parameters.