author | StephaneLenclud |
Mon, 25 Jan 2016 21:26:30 +0100 | |
changeset 185 | 729e91c7d5b2 |
parent 48 | 9039acfde091 |
child 235 | ba14a29944c4 |
permissions | -rw-r--r-- |
StephaneLenclud@123 | 1 |
// |
StephaneLenclud@123 | 2 |
// Copyright (C) 2014-2015 Stéphane Lenclud. |
StephaneLenclud@123 | 3 |
// |
StephaneLenclud@123 | 4 |
// This file is part of SharpDisplayManager. |
StephaneLenclud@123 | 5 |
// |
StephaneLenclud@123 | 6 |
// SharpDisplayManager is free software: you can redistribute it and/or modify |
StephaneLenclud@123 | 7 |
// it under the terms of the GNU General Public License as published by |
StephaneLenclud@123 | 8 |
// the Free Software Foundation, either version 3 of the License, or |
StephaneLenclud@123 | 9 |
// (at your option) any later version. |
StephaneLenclud@123 | 10 |
// |
StephaneLenclud@123 | 11 |
// SharpDisplayManager is distributed in the hope that it will be useful, |
StephaneLenclud@123 | 12 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
StephaneLenclud@123 | 13 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
StephaneLenclud@123 | 14 |
// GNU General Public License for more details. |
StephaneLenclud@123 | 15 |
// |
StephaneLenclud@123 | 16 |
// You should have received a copy of the GNU General Public License |
StephaneLenclud@123 | 17 |
// along with SharpDisplayManager. If not, see <http://www.gnu.org/licenses/>. |
StephaneLenclud@123 | 18 |
// |
StephaneLenclud@123 | 19 |
|
StephaneLenclud@123 | 20 |
namespace SharpDisplayManager.Properties { |
sl@48 | 21 |
|
sl@48 | 22 |
|
sl@48 | 23 |
// This class allows you to handle specific events on the settings class: |
sl@48 | 24 |
// The SettingChanging event is raised before a setting's value is changed. |
sl@48 | 25 |
// The PropertyChanged event is raised after a setting's value is changed. |
sl@48 | 26 |
// The SettingsLoaded event is raised after the setting values are loaded. |
sl@48 | 27 |
// The SettingsSaving event is raised before the setting values are saved. |
sl@48 | 28 |
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { |
sl@48 | 29 |
|
sl@48 | 30 |
public Settings() : base("default") { |
sl@48 | 31 |
// // To add event handlers for saving and changing settings, uncomment the lines below: |
sl@48 | 32 |
// |
sl@48 | 33 |
// this.SettingChanging += this.SettingChangingEventHandler; |
sl@48 | 34 |
// |
sl@48 | 35 |
// this.SettingsSaving += this.SettingsSavingEventHandler; |
sl@48 | 36 |
// |
sl@48 | 37 |
} |
sl@48 | 38 |
|
sl@48 | 39 |
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) { |
sl@48 | 40 |
// Add code to handle the SettingChangingEvent event here. |
sl@48 | 41 |
} |
sl@48 | 42 |
|
sl@48 | 43 |
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) { |
sl@48 | 44 |
// Add code to handle the SettingsSaving event here. |
sl@48 | 45 |
} |
sl@48 | 46 |
} |
sl@48 | 47 |
} |