From f0cac444ec51356a861faee51aeb1501f36b56ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Verseczi?= Date: Tue, 15 May 2018 20:32:13 +0200 Subject: [PATCH] Main -> MainApplication --- MediaCleaner/Helpers/Log.cs | 13 ++++++------- MediaCleaner/{Main.xaml => MainApplication.xaml} | 0 .../{Main.xaml.cs => MainApplication.xaml.cs} | 2 -- MediaCleaner/MediaCleaner.csproj | 6 +++--- 4 files changed, 9 insertions(+), 12 deletions(-) rename MediaCleaner/{Main.xaml => MainApplication.xaml} (100%) rename MediaCleaner/{Main.xaml.cs => MainApplication.xaml.cs} (99%) diff --git a/MediaCleaner/Helpers/Log.cs b/MediaCleaner/Helpers/Log.cs index 11e58ea..9f82c77 100644 --- a/MediaCleaner/Helpers/Log.cs +++ b/MediaCleaner/Helpers/Log.cs @@ -6,16 +6,15 @@ namespace MediaCleaner { public class Log { - public static void EnableDebug() { - foreach (var rule in LogManager.Configuration.LoggingRules) - { - rule.EnableLoggingForLevel(LogLevel.Trace); - rule.EnableLoggingForLevel(LogLevel.Debug); - } + foreach (var rule in LogManager.Configuration.LoggingRules) + { + rule.EnableLoggingForLevel(LogLevel.Trace); + rule.EnableLoggingForLevel(LogLevel.Debug); + } - LogManager.ReconfigExistingLoggers(); + LogManager.ReconfigExistingLoggers(); } } } diff --git a/MediaCleaner/Main.xaml b/MediaCleaner/MainApplication.xaml similarity index 100% rename from MediaCleaner/Main.xaml rename to MediaCleaner/MainApplication.xaml diff --git a/MediaCleaner/Main.xaml.cs b/MediaCleaner/MainApplication.xaml.cs similarity index 99% rename from MediaCleaner/Main.xaml.cs rename to MediaCleaner/MainApplication.xaml.cs index 9f1834f..fd425ab 100644 --- a/MediaCleaner/Main.xaml.cs +++ b/MediaCleaner/MainApplication.xaml.cs @@ -261,8 +261,6 @@ private void stop() dispatcherTimer.Stop(); } - - private void OpenSettings(Object sender, EventArgs e) { var preSettingsInterval = Config.Interval; diff --git a/MediaCleaner/MediaCleaner.csproj b/MediaCleaner/MediaCleaner.csproj index c9656e5..97a1cfe 100644 --- a/MediaCleaner/MediaCleaner.csproj +++ b/MediaCleaner/MediaCleaner.csproj @@ -90,7 +90,7 @@ - + MSBuild:Compile Designer @@ -144,8 +144,8 @@ MSBuild:Compile Designer - - Main.xaml + + MainApplication.xaml Code