update code format

This commit is contained in:
Jeremy 2021-12-03 21:08:42 +11:00
parent 2cedd1bf12
commit a94e6a31db
8 changed files with 2 additions and 87 deletions

View file

@ -244,7 +244,7 @@ namespace Flow.Launcher
} }
private void OpenWelcomeWindow() private void OpenWelcomeWindow()
{ {
Flow.Launcher.WelcomeWindow WelcomeWindow = new WelcomeWindow(_settings); var WelcomeWindow = new WelcomeWindow(_settings);
WelcomeWindow.Show(); WelcomeWindow.Show();
} }
private void ToggleGameMode() private void ToggleGameMode()

View file

@ -1,39 +1,15 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.IO;
using System.Windows.Media.Imaging;
using System.Windows.Navigation; using System.Windows.Navigation;
using System.Windows.Shapes;
using Flow.Launcher.Infrastructure.UserSettings; using Flow.Launcher.Infrastructure.UserSettings;
using System.Windows.Interop;
using Microsoft.Win32;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.ViewModel;
using Flow.Launcher.Core.Resource; using Flow.Launcher.Core.Resource;
using ModernWpf.Navigation;
using Page = ModernWpf.Controls.Page;
namespace Flow.Launcher.Resources.Pages namespace Flow.Launcher.Resources.Pages
{ {
/// <summary>
/// WelcomePage1.xaml에 대한 상호 작용 논리
/// </summary>
public partial class WelcomePage1 public partial class WelcomePage1
{ {
private bool initialize = false;
protected override void OnNavigatedTo(NavigationEventArgs e) protected override void OnNavigatedTo(NavigationEventArgs e)
{ {
if (e.ExtraData is Settings settings) if (e.ExtraData is Settings settings)
Settings = settings; Settings = settings;
else else

View file

@ -5,9 +5,6 @@ using System.Windows.Navigation;
namespace Flow.Launcher.Resources.Pages namespace Flow.Launcher.Resources.Pages
{ {
/// <summary>
/// WelcomePage2.xaml에 대한 상호 작용 논리
/// </summary>
public partial class WelcomePage2 public partial class WelcomePage2
{ {
private Settings Settings { get; set; } private Settings Settings { get; set; }

View file

@ -1,23 +1,9 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using Flow.Launcher.Core.Resource;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation; using System.Windows.Navigation;
using System.Windows.Shapes;
using Flow.Launcher.Infrastructure.UserSettings; using Flow.Launcher.Infrastructure.UserSettings;
namespace Flow.Launcher.Resources.Pages namespace Flow.Launcher.Resources.Pages
{ {
public partial class WelcomePage3 public partial class WelcomePage3
{ {
protected override void OnNavigatedTo(NavigationEventArgs e) protected override void OnNavigatedTo(NavigationEventArgs e)

View file

@ -1,24 +1,9 @@
using Flow.Launcher.Infrastructure.UserSettings; using Flow.Launcher.Infrastructure.UserSettings;
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation; using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Flow.Launcher.Resources.Pages namespace Flow.Launcher.Resources.Pages
{ {
/// <summary>
/// WelcomePage4.xaml에 대한 상호 작용 논리
/// </summary>
public partial class WelcomePage4 public partial class WelcomePage4
{ {
protected override void OnNavigatedTo(NavigationEventArgs e) protected override void OnNavigatedTo(NavigationEventArgs e)

View file

@ -1,23 +1,9 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows; using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.IO;
using System.Windows.Media.Imaging;
using System.Windows.Navigation; using System.Windows.Navigation;
using System.Windows.Shapes;
using Flow.Launcher.Infrastructure.UserSettings; using Flow.Launcher.Infrastructure.UserSettings;
using System.Windows.Interop;
using Microsoft.Win32; using Microsoft.Win32;
using Flow.Launcher.Infrastructure; using Flow.Launcher.Infrastructure;
using Flow.Launcher.ViewModel;
namespace Flow.Launcher.Resources.Pages namespace Flow.Launcher.Resources.Pages
{ {
@ -39,7 +25,6 @@ namespace Flow.Launcher.Resources.Pages
private void OnAutoStartupChecked(object sender, RoutedEventArgs e) private void OnAutoStartupChecked(object sender, RoutedEventArgs e)
{ {
SetStartup(); SetStartup();
} }
private void OnAutoStartupUncheck(object sender, RoutedEventArgs e) private void OnAutoStartupUncheck(object sender, RoutedEventArgs e)
{ {
@ -62,7 +47,6 @@ namespace Flow.Launcher.Resources.Pages
private void OnHideOnStartupChecked(object sender, RoutedEventArgs e) private void OnHideOnStartupChecked(object sender, RoutedEventArgs e)
{ {
Settings.HideOnStartup = true; Settings.HideOnStartup = true;
} }
private void OnHideOnStartupUnchecked(object sender, RoutedEventArgs e) private void OnHideOnStartupUnchecked(object sender, RoutedEventArgs e)
{ {

View file

@ -319,7 +319,6 @@ namespace Flow.Launcher
_ => ThemeManager.Current.ApplicationTheme _ => ThemeManager.Current.ApplicationTheme
}; };
/* Custom TitleBar */ /* Custom TitleBar */
private void OnMinimizeButtonClick(object sender, RoutedEventArgs e) private void OnMinimizeButtonClick(object sender, RoutedEventArgs e)

View file

@ -1,17 +1,5 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows; using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Flow.Launcher.Infrastructure.UserSettings; using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Resources.Pages; using Flow.Launcher.Resources.Pages;
using ModernWpf.Media.Animation; using ModernWpf.Media.Animation;
@ -38,7 +26,7 @@ namespace Flow.Launcher
{ {
Effect = SlideNavigationTransitionEffect.FromLeft Effect = SlideNavigationTransitionEffect.FromLeft
}; };
Storyboard sb = new Storyboard();
private int pageNum = 1; private int pageNum = 1;
private int MaxPage = 5; private int MaxPage = 5;
public string PageDisplay => $"{pageNum}/5"; public string PageDisplay => $"{pageNum}/5";