diff --git a/PomoTime/App.xaml.cs b/PomoTime/App.xaml.cs index cdd7286..648facf 100644 --- a/PomoTime/App.xaml.cs +++ b/PomoTime/App.xaml.cs @@ -1,20 +1,9 @@ using Microsoft.QueryStringDotNET; using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; -using Windows.Foundation; -using Windows.Foundation.Collections; -using Windows.Storage; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Controls.Primitives; -using Windows.UI.Xaml.Data; -using Windows.UI.Xaml.Input; -using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; namespace PomoTime @@ -54,7 +43,7 @@ namespace PomoTime if (e.PreviousExecutionState == ApplicationExecutionState.Terminated || e.PreviousExecutionState == ApplicationExecutionState.ClosedByUser) - {} + { } // Place the frame in the current Window Window.Current.Content = rootFrame; @@ -80,7 +69,8 @@ namespace PomoTime if (args.Contains("action")) { rootFrame.Navigate(typeof(MainPage), args["action"]); - } else + } + else { rootFrame.Navigate(typeof(MainPage), "nothing"); } diff --git a/PomoTime/MainPage.xaml.cs b/PomoTime/MainPage.xaml.cs index 7c499af..a24378e 100644 --- a/PomoTime/MainPage.xaml.cs +++ b/PomoTime/MainPage.xaml.cs @@ -1,24 +1,15 @@ -using System; +using Microsoft.Toolkit.Uwp.Notifications; +using System; using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; -using Windows.Foundation.Collections; -using Windows.UI.ViewManagement; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; -using controls = Microsoft.UI.Xaml.Controls; -using Windows.UI.Xaml.Controls.Primitives; -using Windows.UI.Xaml.Data; -using Windows.UI.Xaml.Input; -using Windows.UI.Xaml.Media; -using Windows.UI.Xaml.Navigation; -using Windows.UI.Notifications; using Windows.Storage; using Windows.System.Threading; using Windows.UI.Core; -using Microsoft.Toolkit.Uwp.Notifications; +using Windows.UI.Notifications; +using Windows.UI.ViewManagement; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Navigation; // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409 @@ -415,7 +406,8 @@ namespace PomoTime MainViewRunningState.IsRunning = (bool)localSettings.Values["IsRunning"]; MainViewRunningState.PreviousShortBreaks = (int)localSettings.Values["PreviousShortBreaks"]; MainViewRunningState.CurrentPeriod = (Period)localSettings.Values["CurrentPeriod"]; - } else + } + else { Reset(); } diff --git a/PomoTime/PeriodToStringConverter.cs b/PomoTime/PeriodToStringConverter.cs index 1f45e83..21aec99 100644 --- a/PomoTime/PeriodToStringConverter.cs +++ b/PomoTime/PeriodToStringConverter.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Windows.UI.Xaml.Data; namespace PomoTime diff --git a/PomoTime/Properties/AssemblyInfo.cs b/PomoTime/Properties/AssemblyInfo.cs index c7fa9ae..c15e23e 100644 --- a/PomoTime/Properties/AssemblyInfo.cs +++ b/PomoTime/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/PomoTime/RunningState.cs b/PomoTime/RunningState.cs index 0e6f95c..c8be924 100644 --- a/PomoTime/RunningState.cs +++ b/PomoTime/RunningState.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Linq; using System.Runtime.CompilerServices; -using System.Text; -using System.Threading.Tasks; namespace PomoTime {