Add 'Version' as an application setting.
authorDean Looyengoed
Fri, 19 Feb 2016 17:39:37 +0100
changeset 480d4c4f899815a
parent 479 bad5a28debd6
child 481 3de1f6576fe7
Add 'Version' as an application setting.
Properties/Settings.Designer.cs
Properties/Settings.settings
app.config
     1.1 --- a/Properties/Settings.Designer.cs	Fri Feb 19 17:38:49 2016 +0100
     1.2 +++ b/Properties/Settings.Designer.cs	Fri Feb 19 17:39:37 2016 +0100
     1.3 @@ -31,5 +31,14 @@
     1.4                  return ((string)(this["Serial"]));
     1.5              }
     1.6          }
     1.7 +        
     1.8 +        [global::System.Configuration.ApplicationScopedSettingAttribute()]
     1.9 +        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    1.10 +        [global::System.Configuration.DefaultSettingValueAttribute("1.0.27")]
    1.11 +        public string Version {
    1.12 +            get {
    1.13 +                return ((string)(this["Version"]));
    1.14 +            }
    1.15 +        }
    1.16      }
    1.17  }
     2.1 --- a/Properties/Settings.settings	Fri Feb 19 17:38:49 2016 +0100
     2.2 +++ b/Properties/Settings.settings	Fri Feb 19 17:39:37 2016 +0100
     2.3 @@ -5,5 +5,8 @@
     2.4      <Setting Name="Serial" Type="System.String" Scope="Application">
     2.5        <Value Profile="(Default)">23</Value>
     2.6      </Setting>
     2.7 +    <Setting Name="Version" Type="System.String" Scope="Application">
     2.8 +      <Value Profile="(Default)">1.0.27</Value>
     2.9 +    </Setting>
    2.10    </Settings>
    2.11  </SettingsFile>
    2.12 \ No newline at end of file
     3.1 --- a/app.config	Fri Feb 19 17:38:49 2016 +0100
     3.2 +++ b/app.config	Fri Feb 19 17:39:37 2016 +0100
     3.3 @@ -10,6 +10,9 @@
     3.4              <setting name="Serial" serializeAs="String">
     3.5                  <value>23</value>
     3.6              </setting>
     3.7 +            <setting name="Version" serializeAs="String">
     3.8 +                <value>1.0.27</value>
     3.9 +            </setting>
    3.10          </pEp.Properties.Settings>
    3.11      </applicationSettings>
    3.12  </configuration>