Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/19/08 02:56:12 (16 years ago)
Author:
swagner
Message:

Experimented with the .NET application settings framework (#7)

Location:
trunk/sources/HeuristicLab.Settings/Properties
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Settings/Properties/Settings.Designer.cs

    r757 r775  
    2626        [global::System.Configuration.ApplicationScopedSettingAttribute()]
    2727        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    28         [global::System.Configuration.DefaultSettingValueAttribute("Nice Value")]
    29         public string MySetting {
     28        [global::System.Configuration.DefaultSettingValueAttribute("Application Setting Value")]
     29        public string MyApplicationSetting {
    3030            get {
    31                 return ((string)(this["MySetting"]));
     31                return ((string)(this["MyApplicationSetting"]));
     32            }
     33            set {
     34                this["MyApplicationSetting"] = value;
    3235            }
    3336        }
     
    3538        [global::System.Configuration.UserScopedSettingAttribute()]
    3639        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    37         [global::System.Configuration.DefaultSettingValueAttribute("COOL!!")]
    38         public string AnotherSetting {
     40        [global::System.Configuration.DefaultSettingValueAttribute("User Setting Value")]
     41        public string MyUserSetting {
    3942            get {
    40                 return ((string)(this["AnotherSetting"]));
     43                return ((string)(this["MyUserSetting"]));
    4144            }
    4245            set {
    43                 this["AnotherSetting"] = value;
     46                this["MyUserSetting"] = value;
    4447            }
    4548        }
  • trunk/sources/HeuristicLab.Settings/Properties/Settings.settings

    r757 r775  
    33  <Profiles />
    44  <Settings>
    5     <Setting Name="MySetting" Type="System.String" Scope="Application">
    6       <Value Profile="(Default)">Nice Value</Value>
     5    <Setting Name="MyApplicationSetting" Type="System.String" Scope="Application">
     6      <Value Profile="(Default)">Application Setting Value</Value>
    77    </Setting>
    8     <Setting Name="AnotherSetting" Type="System.String" Scope="User">
    9       <Value Profile="(Default)">COOL!!</Value>
     8    <Setting Name="MyUserSetting" Type="System.String" Scope="User">
     9      <Value Profile="(Default)">User Setting Value</Value>
    1010    </Setting>
    1111  </Settings>
Note: See TracChangeset for help on using the changeset viewer.