|
1 | | -namespace VSPackage.CPPCheckPlugin.Properties { |
2 | | - |
3 | | - |
4 | | - // This class allows you to handle specific events on the settings class: |
5 | | - // The SettingChanging event is raised before a setting's value is changed. |
6 | | - // The PropertyChanged event is raised after a setting's value is changed. |
7 | | - // The SettingsLoaded event is raised after the setting values are loaded. |
8 | | - // The SettingsSaving event is raised before the setting values are saved. |
9 | | - internal sealed partial class Settings { |
10 | | - |
11 | | - public Settings() { |
12 | | - // // To add event handlers for saving and changing settings, uncomment the lines below: |
13 | | - // |
14 | | - // this.SettingChanging += this.SettingChangingEventHandler; |
15 | | - // |
16 | | - // this.SettingsSaving += this.SettingsSavingEventHandler; |
17 | | - // |
18 | | - } |
19 | | - |
20 | | - private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) { |
21 | | - // Add code to handle the SettingChangingEvent event here. |
22 | | - } |
23 | | - |
24 | | - private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) { |
25 | | - // Add code to handle the SettingsSaving event here. |
26 | | - } |
| 1 | +namespace VSPackage.CPPCheckPlugin.Properties |
| 2 | +{ |
27 | 3 |
|
28 | | - private const string CheckSavedFilesOptionKeyName = "CheckSavedFiles"; |
29 | 4 |
|
30 | | - public bool CheckSavedFilesHasValue { |
31 | | - get { |
32 | | - if (this[CheckSavedFilesOptionKeyName] == null) |
33 | | - { |
34 | | - return false; |
35 | | - } |
36 | | - return true; |
37 | | - } |
38 | | - } |
39 | | - } |
| 5 | + // This class allows you to handle specific events on the settings class: |
| 6 | + // The SettingChanging event is raised before a setting's value is changed. |
| 7 | + // The PropertyChanged event is raised after a setting's value is changed. |
| 8 | + // The SettingsLoaded event is raised after the setting values are loaded. |
| 9 | + // The SettingsSaving event is raised before the setting values are saved. |
| 10 | + internal sealed partial class Settings |
| 11 | + { |
| 12 | + |
| 13 | + public Settings() |
| 14 | + { |
| 15 | + // // To add event handlers for saving and changing settings, uncomment the lines below: |
| 16 | + // |
| 17 | + // this.SettingChanging += this.SettingChangingEventHandler; |
| 18 | + // |
| 19 | + // this.SettingsSaving += this.SettingsSavingEventHandler; |
| 20 | + // |
| 21 | + } |
| 22 | + |
| 23 | + private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) |
| 24 | + { |
| 25 | + // Add code to handle the SettingChangingEvent event here. |
| 26 | + } |
| 27 | + |
| 28 | + private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) |
| 29 | + { |
| 30 | + // Add code to handle the SettingsSaving event here. |
| 31 | + } |
| 32 | + |
| 33 | + private const string CheckSavedFilesOptionKeyName = "CheckSavedFiles"; |
| 34 | + |
| 35 | + public bool CheckSavedFilesHasValue |
| 36 | + { |
| 37 | + get |
| 38 | + { |
| 39 | + if (this[CheckSavedFilesOptionKeyName] == null) |
| 40 | + { |
| 41 | + return false; |
| 42 | + } |
| 43 | + return true; |
| 44 | + } |
| 45 | + } |
| 46 | + } |
40 | 47 | } |
0 commit comments