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