Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/15/08 00:52:15 (16 years ago)
Author:
swagner
Message:

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

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

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Settings/HeuristicLabSettingsPlugin.cs

    r757 r758  
    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     }
    3631  }
    3732}
  • trunk/sources/HeuristicLab.Settings/MainForm.cs

    r757 r758  
    1717    private void MainForm_Load(object sender, EventArgs e) {
    1818      settings = Properties.Settings.Default;
     19      settings.Reload();
    1920      textBox1.Text = settings.AnotherSetting;
    2021      textBox2.Text = settings.MySetting;
Note: See TracChangeset for help on using the changeset viewer.