summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spedytor/Form1.cs14
-rw-r--r--spedytor/Properties/OptionSettings.Designer.cs12
-rw-r--r--spedytor/Properties/OptionSettings.settings6
-rw-r--r--spedytor/app.config9
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<string>().ToList());
- this.cSend.Checked = Properties.OptionSettings.Default.send;
+ this.setSelectedDBs(Properties.OptionSettings.Default.DB_NAMES.Cast<string>().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 @@
<?xml version='1.0' encoding='utf-8'?>
-<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="spedytor" GeneratedClassName="OptionSettings">
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="spedytor.Properties" GeneratedClassName="OptionSettings">
<Profiles />
<Settings>
- <Setting Name="dbNames" Type="System.Collections.Specialized.StringCollection" Scope="User">
+ <Setting Name="DB_NAMES" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)" />
</Setting>
- <Setting Name="send" Type="System.Boolean" Scope="User">
+ <Setting Name="SEND_FLAG" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
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 @@
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <section name="spedytor.OptionSettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
+ <section name="spedytor.Properties.OptionSettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
<section name="spedytor.Properties.S3Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
- <section name="spedytor.S3Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
<section name="spedytor.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
</sectionGroup>
</configSections>
<userSettings>
- <spedytor.OptionSettings>
- <setting name="send" serializeAs="String">
+ <spedytor.Properties.OptionSettings>
+ <setting name="SEND_FLAG" serializeAs="String">
<value>False</value>
</setting>
- </spedytor.OptionSettings>
+ </spedytor.Properties.OptionSettings>
<spedytor.Properties.S3Settings>
<setting name="AWS_ACCESS_KEY" serializeAs="String">
<value />