Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/20/08 01:11:25 (16 years ago)
Author:
swagner
Message:

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

Location:
trunk/sources/HeuristicLab.Settings
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Settings/HeuristicLab.Settings.csproj

    r759 r787  
    3636  <ItemGroup>
    3737    <Reference Include="System" />
     38    <Reference Include="System.configuration" />
    3839    <Reference Include="System.Data" />
    3940    <Reference Include="System.Drawing" />
     
    5051      <DependentUpon>MainForm.cs</DependentUpon>
    5152    </Compile>
     53    <Compile Include="PluginSettingsProvider.cs" />
    5254    <Compile Include="Properties\AssemblyInfo.cs" />
    5355    <Compile Include="Properties\Settings.Designer.cs">
     
    5557      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    5658      <DependentUpon>Settings.settings</DependentUpon>
     59    </Compile>
     60    <Compile Include="Settings1.Designer.cs">
     61      <AutoGen>True</AutoGen>
     62      <DesignTimeSharedInput>True</DesignTimeSharedInput>
     63      <DependentUpon>Settings1.settings</DependentUpon>
    5764    </Compile>
    5865  </ItemGroup>
     
    7077      <Generator>SettingsSingleFileGenerator</Generator>
    7178      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
     79    </None>
     80    <None Include="Settings1.settings">
     81      <Generator>SettingsSingleFileGenerator</Generator>
     82      <LastGenOutput>Settings1.Designer.cs</LastGenOutput>
    7283    </None>
    7384  </ItemGroup>
  • trunk/sources/HeuristicLab.Settings/app.config

    r775 r787  
    33    <configSections>
    44        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
     5            <section name="HeuristicLab.Settings.Settings1" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    56            <section name="HeuristicLab.Settings.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    67        </sectionGroup>
     
    1011    </configSections>
    1112    <applicationSettings>
     13        <HeuristicLab.Settings.Settings1>
     14            <setting name="MySettingInAFile" serializeAs="String">
     15                <value>MySettingInAFileValue</value>
     16            </setting>
     17        </HeuristicLab.Settings.Settings1>
    1218        <HeuristicLab.Settings.Properties.Settings>
    1319            <setting name="MyApplicationSetting" serializeAs="String">
Note: See TracChangeset for help on using the changeset viewer.