-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathProperties.Settings.cs
39 lines (32 loc) · 1.74 KB
/
Properties.Settings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System.IO;
namespace AutoMuteUs_Portable.Properties {
// このクラスでは設定クラスでの特定のイベントを処理することができます:
// SettingChanging イベントは、設定値が変更される前に発生します。
// PropertyChanged イベントは、設定値が変更された後に発生します。
// SettingsLoaded イベントは、設定値が読み込まれた後に発生します。
// SettingsSaving イベントは、設定値が保存される前に発生します。
[global::System.Configuration.SettingsProvider(typeof(AutoMuteUs_Portable.CustomSettingsProvider))]
public sealed partial class Settings {
public Settings() {
// // 設定の保存と変更のイベント ハンドラーを追加するには、以下の行のコメントを解除します:
//
// this.SettingChanging += this.SettingChangingEventHandler;
//
// this.SettingsSaving += this.SettingsSavingEventHandler;
//
}
public void DeleteConfig()
{
if (File.Exists(CustomSettingsProvider.UserConfigPath))
{
File.Delete(CustomSettingsProvider.UserConfigPath);
}
}
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {
// SettingChangingEvent イベントを処理するコードをここに追加してください。
}
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) {
// SettingsSaving イベントを処理するコードをここに追加してください。
}
}
}