Free cookie consent management tool by TermsFeed Policy Generator

Changeset 757 for trunk/sources


Ignore:
Timestamp:
11/14/08 17:18:35 (16 years ago)
Author:
swagner
Message:

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

Location:
trunk/sources
Files:
7 added
3 edited

Legend:

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

    r747 r757  
    3737    <Reference Include="System" />
    3838    <Reference Include="System.Data" />
     39    <Reference Include="System.Drawing" />
     40    <Reference Include="System.Windows.Forms" />
    3941    <Reference Include="System.Xml" />
    4042  </ItemGroup>
    4143  <ItemGroup>
    4244    <Compile Include="HeuristicLabSettingsPlugin.cs" />
     45    <Compile Include="HeuristicLabSettingsApplication.cs" />
     46    <Compile Include="MainForm.cs">
     47      <SubType>Form</SubType>
     48    </Compile>
     49    <Compile Include="MainForm.Designer.cs">
     50      <DependentUpon>MainForm.cs</DependentUpon>
     51    </Compile>
    4352    <Compile Include="Properties\AssemblyInfo.cs" />
     53    <Compile Include="Properties\Settings.Designer.cs">
     54      <AutoGen>True</AutoGen>
     55      <DesignTimeSharedInput>True</DesignTimeSharedInput>
     56      <DependentUpon>Settings.settings</DependentUpon>
     57    </Compile>
    4458  </ItemGroup>
    4559  <ItemGroup>
     
    5064  </ItemGroup>
    5165  <ItemGroup>
     66    <None Include="app.config" />
    5267    <None Include="HeuristicLab.snk" />
    5368    <None Include="Properties\AssemblyInfo.frame" />
     69    <None Include="Properties\Settings.settings">
     70      <Generator>SettingsSingleFileGenerator</Generator>
     71      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
     72    </None>
     73  </ItemGroup>
     74  <ItemGroup>
     75    <EmbeddedResource Include="MainForm.resx">
     76      <DependentUpon>MainForm.cs</DependentUpon>
     77      <SubType>Designer</SubType>
     78    </EmbeddedResource>
    5479  </ItemGroup>
    5580  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  • trunk/sources/HeuristicLab.Settings/HeuristicLabSettingsPlugin.cs

    r747 r757  
    2929  [PluginFile(Filename = "HeuristicLab.Settings-3.2.dll", Filetype = PluginFileType.Assembly)]
    3030  public class HeuristicLabSettingsPlugin : PluginBase {
     31    public HeuristicLabSettingsPlugin() {
     32      Settings.Properties.Settings settings = Properties.Settings.Default;
     33      settings.AnotherSetting = DateTime.Now.ToString();
     34      settings.Save();
     35    }
    3136  }
    3237}
  • trunk/sources/HeuristicLab/CopyAssemblies.cmd

    r749 r757  
    5050copy %1\HeuristicLab.SequentialEngine\%2\HeuristicLab.SequentialEngine-3.2.dll .\plugins
    5151copy %1\HeuristicLab.Settings\%2\HeuristicLab.Settings-3.2.dll .\plugins
     52copy %1\HeuristicLab.Settings\%2\HeuristicLab.Settings-3.2.dll.config .\plugins
    5253copy %1\HeuristicLab.SGA\%2\HeuristicLab.SGA-3.2.dll .\plugins
    5354copy %1\HeuristicLab.SimOpt\%2\HeuristicLab.SimOpt-3.2.dll .\plugins
Note: See TracChangeset for help on using the changeset viewer.