mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-07 22:59:14 +08:00
Add more comments(zh) Optimize code structure Update the loading order to avoid repeated loading to optimize startup speed.
29 lines
1.2 KiB
C#
29 lines
1.2 KiB
C#
namespace GrasscutterTools.Properties {
|
|
|
|
|
|
// 通过此类可以处理设置类的特定事件:
|
|
// 在更改某个设置的值之前将引发 SettingChanging 事件。
|
|
// 在更改某个设置的值之后将引发 PropertyChanged 事件。
|
|
// 在加载设置值之后将引发 SettingsLoaded 事件。
|
|
// 在保存设置值之前将引发 SettingsSaving 事件。
|
|
internal sealed partial class Settings {
|
|
|
|
public Settings() {
|
|
// // 若要为保存和更改设置添加事件处理程序,请取消注释下列行:
|
|
//
|
|
// this.SettingChanging += this.SettingChangingEventHandler;
|
|
//
|
|
// this.SettingsSaving += this.SettingsSavingEventHandler;
|
|
//
|
|
}
|
|
|
|
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {
|
|
// 在此处添加用于处理 SettingChangingEvent 事件的代码。
|
|
}
|
|
|
|
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) {
|
|
// 在此处添加用于处理 SettingsSaving 事件的代码。
|
|
}
|
|
}
|
|
}
|