From 2e2e447c422b676570bb9e4f2dc6e428898f6b42 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 8 Jan 2018 19:56:31 +0400 Subject: [PATCH] moved Settings to Properties folder. --- ArcFormats/{ => Properties}/Settings.cs | 88 ++++++++++++------------- 1 file changed, 44 insertions(+), 44 deletions(-) rename ArcFormats/{ => Properties}/Settings.cs (97%) diff --git a/ArcFormats/Settings.cs b/ArcFormats/Properties/Settings.cs similarity index 97% rename from ArcFormats/Settings.cs rename to ArcFormats/Properties/Settings.cs index de43d80b..d3dcb774 100644 --- a/ArcFormats/Settings.cs +++ b/ArcFormats/Properties/Settings.cs @@ -1,44 +1,44 @@ -using System; -using System.Windows; -using System.Windows.Threading; - -namespace GameRes.Formats.Properties { - - - // 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. - public sealed partial class Settings { - - public Settings() { - // // To add event handlers for saving and changing settings, uncomment the lines below: - // - // this.SettingChanging += this.SettingChangingEventHandler; - // - // this.SettingsSaving += this.SettingsSavingEventHandler; - // - - if (null != Application.Current) - { - Application.Current.Dispatcher.BeginInvoke (DispatcherPriority.Normal, new Action(() => { - Application.Current.Exit += ApplicationExitHandler; - })); - } - } - - void ApplicationExitHandler (object sender, System.Windows.ExitEventArgs args) - { - Default.Save(); - } - - 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; +using System.Windows; +using System.Windows.Threading; + +namespace GameRes.Formats.Properties { + + + // 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. + public sealed partial class Settings { + + public Settings() { + // // To add event handlers for saving and changing settings, uncomment the lines below: + // + // this.SettingChanging += this.SettingChangingEventHandler; + // + // this.SettingsSaving += this.SettingsSavingEventHandler; + // + + if (null != Application.Current) + { + Application.Current.Dispatcher.BeginInvoke (DispatcherPriority.Normal, new Action(() => { + Application.Current.Exit += ApplicationExitHandler; + })); + } + } + + void ApplicationExitHandler (object sender, System.Windows.ExitEventArgs args) + { + Default.Save(); + } + + 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. + } + } +}