-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
16 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,9 @@ | ||
namespace GenshinLauncher { | ||
|
||
|
||
// This class allows you to handle specific events on the settings class: | ||
// The SettingChanging event is raised before a setting's value is changed. | ||
// The PropertyChanged event is raised after a setting's value is changed. | ||
// The SettingsLoaded event is raised after the setting values are loaded. | ||
// The SettingsSaving event is raised before the setting values are saved. | ||
internal sealed partial class Config { | ||
|
||
public Config() { | ||
// // To add event handlers for saving and changing settings, uncomment the lines below: | ||
// | ||
// this.SettingChanging += this.SettingChangingEventHandler; | ||
// | ||
// this.SettingsSaving += this.SettingsSavingEventHandler; | ||
// | ||
} | ||
|
||
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) { | ||
// Add code to handle the SettingChangingEvent event here. | ||
} | ||
|
||
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) { | ||
// Add code to handle the SettingsSaving event here. | ||
} | ||
using System.ComponentModel; | ||
|
||
namespace GenshinLauncher | ||
{ | ||
internal sealed partial class Config | ||
{ | ||
protected override void OnPropertyChanged(object sender, PropertyChangedEventArgs e) => Save(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters