From 0706c1f906649fde7112d5e6e428f3972bfa1dc6 Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 27 Oct 2019 20:51:49 +0100 Subject: Renaming option settings properties --- spedytor/Form1.cs | 14 +++++++------- spedytor/Properties/OptionSettings.Designer.cs | 12 ++++++------ spedytor/Properties/OptionSettings.settings | 6 +++--- spedytor/app.config | 9 ++++----- 4 files changed, 20 insertions(+), 21 deletions(-) diff --git a/spedytor/Form1.cs b/spedytor/Form1.cs index 99011f5..1deb7f7 100644 --- a/spedytor/Form1.cs +++ b/spedytor/Form1.cs @@ -387,19 +387,19 @@ namespace spedytor private void restoreSettings() { - this.setSelectedDBs(Properties.OptionSettings.Default.dbNames.Cast().ToList()); - this.cSend.Checked = Properties.OptionSettings.Default.send; + this.setSelectedDBs(Properties.OptionSettings.Default.DB_NAMES.Cast().ToList()); + this.cSend.Checked = Properties.OptionSettings.Default.SEND_FLAG; } private void saveSettings() { - Properties.OptionSettings.Default.send = this.cSend.Checked; - if (Properties.OptionSettings.Default.dbNames == null) + Properties.OptionSettings.Default.SEND_FLAG = this.cSend.Checked; + if (Properties.OptionSettings.Default.DB_NAMES == null) { - Properties.OptionSettings.Default.dbNames = new System.Collections.Specialized.StringCollection(); + Properties.OptionSettings.Default.DB_NAMES = new System.Collections.Specialized.StringCollection(); } - Properties.OptionSettings.Default.dbNames.Clear(); - Properties.OptionSettings.Default.dbNames.AddRange(this.selectedDBs.ToArray()); + Properties.OptionSettings.Default.DB_NAMES.Clear(); + Properties.OptionSettings.Default.DB_NAMES.AddRange(this.selectedDBs.ToArray()); Properties.OptionSettings.Default.Save(); } diff --git a/spedytor/Properties/OptionSettings.Designer.cs b/spedytor/Properties/OptionSettings.Designer.cs index 73cd018..2c7f273 100644 --- a/spedytor/Properties/OptionSettings.Designer.cs +++ b/spedytor/Properties/OptionSettings.Designer.cs @@ -25,24 +25,24 @@ namespace spedytor.Properties { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Collections.Specialized.StringCollection dbNames { + public global::System.Collections.Specialized.StringCollection DB_NAMES { get { - return ((global::System.Collections.Specialized.StringCollection)(this["dbNames"])); + return ((global::System.Collections.Specialized.StringCollection)(this["DB_NAMES"])); } set { - this["dbNames"] = value; + this["DB_NAMES"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool send { + public bool SEND_FLAG { get { - return ((bool)(this["send"])); + return ((bool)(this["SEND_FLAG"])); } set { - this["send"] = value; + this["SEND_FLAG"] = value; } } } diff --git a/spedytor/Properties/OptionSettings.settings b/spedytor/Properties/OptionSettings.settings index 3e33106..cebc34f 100644 --- a/spedytor/Properties/OptionSettings.settings +++ b/spedytor/Properties/OptionSettings.settings @@ -1,11 +1,11 @@  - + - + - + False diff --git a/spedytor/app.config b/spedytor/app.config index bf774e4..882e20e 100644 --- a/spedytor/app.config +++ b/spedytor/app.config @@ -2,18 +2,17 @@ -
+
-
- - + + False - + -- cgit v1.2.3