| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 32 | kaklik | /********************************************************************* |
| 2 | * |
||
| 3 | * Settings namespace definition for MPFS21 |
||
| 4 | * |
||
| 5 | ********************************************************************* |
||
| 6 | * FileName: Settings.cs |
||
| 7 | * Dependencies: Microsoft .NET Framework 2.0 |
||
| 8 | * Processor: x86 |
||
| 9 | * Complier: Microsoft Visual C# 2008 Express Edition |
||
| 10 | * Company: Microchip Technology, Inc. |
||
| 11 | * |
||
| 12 | * Software License Agreement |
||
| 13 | * |
||
| 14 | * This software is owned by Microchip Technology Inc. ("Microchip") |
||
| 15 | * and is supplied to you for use exclusively as described in the |
||
| 16 | * associated software agreement. This software is protected by |
||
| 17 | * software and other intellectual property laws. Any use in |
||
| 18 | * violation of the software license may subject the user to criminal |
||
| 19 | * sanctions as well as civil liability. Copyright 2008 Microchip |
||
| 20 | * Technology Inc. All rights reserved. |
||
| 21 | * |
||
| 22 | * |
||
| 23 | * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT |
||
| 24 | * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT |
||
| 25 | * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A |
||
| 26 | * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL |
||
| 27 | * MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR |
||
| 28 | * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF |
||
| 29 | * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS |
||
| 30 | * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE |
||
| 31 | * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER |
||
| 32 | * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT |
||
| 33 | * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE. |
||
| 34 | * |
||
| 35 | * |
||
| 36 | * Author Date Comment |
||
| 37 | *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
| 38 | * Elliott Wood 4/17/2008 Original |
||
| 39 | ********************************************************************/ |
||
| 40 | namespace Microchip |
||
| 41 | { |
||
| 42 | |||
| 43 | |||
| 44 | // This class allows you to handle specific events on the settings class: |
||
| 45 | // The SettingChanging event is raised before a setting's value is changed. |
||
| 46 | // The PropertyChanged event is raised after a setting's value is changed. |
||
| 47 | // The SettingsLoaded event is raised after the setting values are loaded. |
||
| 48 | // The SettingsSaving event is raised before the setting values are saved. |
||
| 49 | internal sealed partial class Settings { |
||
| 50 | |||
| 51 | public Settings() { |
||
| 52 | // // To add event handlers for saving and changing settings, uncomment the lines below: |
||
| 53 | // |
||
| 54 | // this.SettingChanging += this.SettingChangingEventHandler; |
||
| 55 | // |
||
| 56 | // this.SettingsSaving += this.SettingsSavingEventHandler; |
||
| 57 | // |
||
| 58 | } |
||
| 59 | |||
| 60 | private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) { |
||
| 61 | // Add code to handle the SettingChangingEvent event here. |
||
| 62 | } |
||
| 63 | |||
| 64 | private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) { |
||
| 65 | // Add code to handle the SettingsSaving event here. |
||
| 66 | } |
||
| 67 | } |
||
| 68 | } |
Powered by WebSVN v2.8.3