Added hint to "Encryption" settings tab

This commit is contained in:
Alexander 2019-11-10 10:38:30 +02:00
parent 16a07484b9
commit 31fd912910
6 changed files with 23 additions and 23 deletions

View file

@ -141,7 +141,7 @@
<setting name="statusPanelSize" serializeAs="String">
<value>True</value>
</setting>
<setting name="encryptionToolTip" serializeAs="String">
<setting name="encryptionHint" serializeAs="String">
<value>True</value>
</setting>
</Crypto_Notepad.Properties.Settings>

View file

@ -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;
}
}
}

View file

@ -131,7 +131,7 @@
<Setting Name="statusPanelSize" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="encryptionToolTip" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Setting Name="encryptionHint" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
</Settings>

View file

@ -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;
}
}

View file

@ -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;
}
}
}

View file

@ -120,7 +120,7 @@
<metadata name="colorDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="encryptionToolTipLabel.Text" xml:space="preserve">
<data name="encryptionHintLabel.Text" xml:space="preserve">
<value>For the best balance of performance &amp;&amp; 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.</value>
</data>
<metadata name="settingsToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">