| 
sl@48
 | 
     1  | 
namespace SharpDisplayManager.Properties {
 | 
| 
sl@48
 | 
     2  | 
    
  | 
| 
sl@48
 | 
     3  | 
    
  | 
| 
sl@48
 | 
     4  | 
    // This class allows you to handle specific events on the settings class:
  | 
| 
sl@48
 | 
     5  | 
    //  The SettingChanging event is raised before a setting's value is changed.
  | 
| 
sl@48
 | 
     6  | 
    //  The PropertyChanged event is raised after a setting's value is changed.
  | 
| 
sl@48
 | 
     7  | 
    //  The SettingsLoaded event is raised after the setting values are loaded.
  | 
| 
sl@48
 | 
     8  | 
    //  The SettingsSaving event is raised before the setting values are saved.
  | 
| 
sl@48
 | 
     9  | 
    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
 | 
| 
sl@48
 | 
    10  | 
        
  | 
| 
sl@48
 | 
    11  | 
        public Settings() : base("default") {
 | 
| 
sl@48
 | 
    12  | 
            // // To add event handlers for saving and changing settings, uncomment the lines below:
  | 
| 
sl@48
 | 
    13  | 
            //
  | 
| 
sl@48
 | 
    14  | 
            // this.SettingChanging += this.SettingChangingEventHandler;
  | 
| 
sl@48
 | 
    15  | 
            //
  | 
| 
sl@48
 | 
    16  | 
            // this.SettingsSaving += this.SettingsSavingEventHandler;
  | 
| 
sl@48
 | 
    17  | 
            //
  | 
| 
sl@48
 | 
    18  | 
        }
  | 
| 
sl@48
 | 
    19  | 
        
  | 
| 
sl@48
 | 
    20  | 
        private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {
 | 
| 
sl@48
 | 
    21  | 
            // Add code to handle the SettingChangingEvent event here.
  | 
| 
sl@48
 | 
    22  | 
        }
  | 
| 
sl@48
 | 
    23  | 
        
  | 
| 
sl@48
 | 
    24  | 
        private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) {
 | 
| 
sl@48
 | 
    25  | 
            // Add code to handle the SettingsSaving event here.
  | 
| 
sl@48
 | 
    26  | 
        }
  | 
| 
sl@48
 | 
    27  | 
    }
  | 
| 
sl@48
 | 
    28  | 
}
  |