|
15
|
1 |
/* |
|
|
2 |
* This file is part of the TraKERS\Middleware package. |
|
|
3 |
* |
|
|
4 |
* (c) IRI <http://www.iri.centrepompidou.fr/> |
|
|
5 |
* |
|
|
6 |
* For the full copyright and license information, please view the LICENSE_MIDDLEWARE |
|
|
7 |
* file that was distributed with this source code. |
|
|
8 |
*/ |
|
|
9 |
|
|
|
10 |
/* |
|
|
11 |
* Projet : TraKERS |
|
|
12 |
* Module : MIDDLEWARE |
|
|
13 |
* Sous-Module : Debug |
|
|
14 |
* Classe : Settings |
|
|
15 |
* |
|
|
16 |
* Auteur : alexandre.bastien@iri.centrepompidou.fr |
|
|
17 |
* |
|
|
18 |
* Fonctionnalités : Spécifie les instructions à suivre lors de la modification des settings. |
|
|
19 |
*/ |
|
|
20 |
|
|
|
21 |
namespace Trakers.Debug.Properties |
|
|
22 |
{ |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
// This class allows you to handle specific events on the settings class: |
|
|
26 |
// The SettingChanging event is raised before a setting's value is changed. |
|
|
27 |
// The PropertyChanged event is raised after a setting's value is changed. |
|
|
28 |
// The SettingsLoaded event is raised after the setting values are loaded. |
|
|
29 |
// The SettingsSaving event is raised before the setting values are saved. |
|
|
30 |
internal sealed partial class Settings |
|
|
31 |
{ |
|
|
32 |
|
|
|
33 |
public Settings() |
|
|
34 |
{ |
|
|
35 |
this.SettingChanging += this.SettingChangingEventHandler; |
|
|
36 |
this.SettingsSaving += this.SettingsSavingEventHandler; |
|
|
37 |
} |
|
|
38 |
|
|
|
39 |
/* |
|
|
40 |
* Gère la modification des paramètres. |
|
|
41 |
*/ |
|
|
42 |
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) |
|
|
43 |
{ |
|
|
44 |
|
|
|
45 |
} |
|
|
46 |
|
|
|
47 |
/* |
|
|
48 |
* Gère la sauvegarde des paramètres. |
|
|
49 |
*/ |
|
|
50 |
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) |
|
|
51 |
{ |
|
|
52 |
|
|
|
53 |
} |
|
|
54 |
} |
|
|
55 |
} |