diff --git a/Crypto Notepad/App.config b/Crypto Notepad/App.config
index 663ab7f..8ae5cf5 100644
--- a/Crypto Notepad/App.config
+++ b/Crypto Notepad/App.config
@@ -43,7 +43,7 @@
192
-
+
2
@@ -69,6 +69,9 @@
Normal
+
+ True
+
diff --git a/Crypto Notepad/Properties/Settings.Designer.cs b/Crypto Notepad/Properties/Settings.Designer.cs
index b39f304..6bad054 100644
--- a/Crypto Notepad/Properties/Settings.Designer.cs
+++ b/Crypto Notepad/Properties/Settings.Designer.cs
@@ -281,5 +281,17 @@ public bool AutoLock {
this["WindowState"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool AutoSave {
+ get {
+ return ((bool)(this["AutoSave"]));
+ }
+ set {
+ this["AutoSave"] = value;
+ }
+ }
}
}
diff --git a/Crypto Notepad/Properties/Settings.settings b/Crypto Notepad/Properties/Settings.settings
index 6b5fb9d..c700210 100644
--- a/Crypto Notepad/Properties/Settings.settings
+++ b/Crypto Notepad/Properties/Settings.settings
@@ -62,5 +62,8 @@
Normal
+
+ True
+
\ No newline at end of file
diff --git a/Crypto Notepad/SettingsForm.Designer.cs b/Crypto Notepad/SettingsForm.Designer.cs
index ffcbb4a..9201d14 100644
--- a/Crypto Notepad/SettingsForm.Designer.cs
+++ b/Crypto Notepad/SettingsForm.Designer.cs
@@ -62,6 +62,7 @@ private void InitializeComponent()
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.button1 = new System.Windows.Forms.Button();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
+ this.checkBox5 = new System.Windows.Forms.CheckBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
@@ -351,6 +352,7 @@ private void InitializeComponent()
//
// tabPage3
//
+ this.tabPage3.Controls.Add(this.checkBox5);
this.tabPage3.Controls.Add(this.checkBox4);
this.tabPage3.Controls.Add(this.checkBox3);
this.tabPage3.Controls.Add(this.checkBox2);
@@ -413,6 +415,16 @@ private void InitializeComponent()
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
+ // checkBox5
+ //
+ this.checkBox5.AutoSize = true;
+ this.checkBox5.Location = new System.Drawing.Point(7, 126);
+ this.checkBox5.Name = "checkBox5";
+ this.checkBox5.Size = new System.Drawing.Size(112, 17);
+ this.checkBox5.TabIndex = 4;
+ this.checkBox5.Text = "Auto-save on lock";
+ this.checkBox5.UseVisualStyleBackColor = true;
+ //
// SettingsForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -475,5 +487,6 @@ private void InitializeComponent()
private System.Windows.Forms.Label warningLabel;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.PictureBox closeLabel;
+ private System.Windows.Forms.CheckBox checkBox5;
}
}
\ No newline at end of file
diff --git a/Crypto Notepad/SettingsForm.cs b/Crypto Notepad/SettingsForm.cs
index afb2cf5..490e243 100644
--- a/Crypto Notepad/SettingsForm.cs
+++ b/Crypto Notepad/SettingsForm.cs
@@ -35,6 +35,7 @@ private void SettingsForm_Load(object sender, EventArgs e)
checkBox2.Checked = ps.AutoCheckUpdate;
checkBox3.Checked = ps.ShowToolbar;
checkBox4.Checked = ps.AutoLock;
+ checkBox5.Checked = ps.AutoSave;
if (ps.WarningMsg == false)
{
@@ -75,6 +76,7 @@ private void SetSettings(string value)
ps.ShowToolbar = checkBox3.Checked;
ps.AutoCheckUpdate = checkBox2.Checked;
ps.AutoLock = checkBox4.Checked;
+ ps.AutoSave = checkBox5.Checked;
ps.Save();
publicVar.settingsChanged = true;