diff --git a/Ink Canvas/MainWindow.xaml b/Ink Canvas/MainWindow.xaml index 3d8fcf61..ed9825f5 100644 --- a/Ink Canvas/MainWindow.xaml +++ b/Ink Canvas/MainWindow.xaml @@ -1,4 +1,4 @@ - - - - - - - - - - - - - - diff --git a/Ink Canvas/Properties/Strings.en-US.resx b/Ink Canvas/Properties/Strings.en-US.resx index 0665ba02..a0c0a321 100644 --- a/Ink Canvas/Properties/Strings.en-US.resx +++ b/Ink Canvas/Properties/Strings.en-US.resx @@ -207,6 +207,15 @@ Exit + + Restart application + + + Reset to recommended settings + + + Exit application + Mode diff --git a/Ink Canvas/Properties/Strings.resx b/Ink Canvas/Properties/Strings.resx index ea3fb82c..0fb11153 100644 --- a/Ink Canvas/Properties/Strings.resx +++ b/Ink Canvas/Properties/Strings.resx @@ -222,6 +222,15 @@ 退出 + + 重启应用程序 + + + 重置为推荐设置 + + + 退出应用程序 + 模式设置 diff --git a/Ink Canvas/Windows/SettingsViews/Pages/HomePage.xaml b/Ink Canvas/Windows/SettingsViews/Pages/HomePage.xaml index 38c7f57e..edf0cc03 100644 --- a/Ink Canvas/Windows/SettingsViews/Pages/HomePage.xaml +++ b/Ink Canvas/Windows/SettingsViews/Pages/HomePage.xaml @@ -29,6 +29,30 @@ HorizontalAlignment="Stretch" Spacing="{StaticResource SettingsCardSpacing}"> + + + + + + + + + + + + + + + + + + + + diff --git a/Ink Canvas/Windows/SettingsViews/Pages/HomePage.xaml.cs b/Ink Canvas/Windows/SettingsViews/Pages/HomePage.xaml.cs index 8ba08d8f..a7d77dde 100644 --- a/Ink Canvas/Windows/SettingsViews/Pages/HomePage.xaml.cs +++ b/Ink Canvas/Windows/SettingsViews/Pages/HomePage.xaml.cs @@ -17,5 +17,23 @@ namespace Ink_Canvas.Windows.SettingsViews.Pages settingsWindow?.NavigateToPage(pageTag); } } + + private void BtnRestart_Click(object sender, RoutedEventArgs e) + { + var mainWindow = Application.Current.MainWindow as MainWindow; + mainWindow?.BtnRestart_Click(sender, e); + } + + private void BtnResetToSuggestion_Click(object sender, RoutedEventArgs e) + { + var mainWindow = Application.Current.MainWindow as MainWindow; + mainWindow?.BtnResetToSuggestion_Click(sender, e); + } + + private void BtnExit_Click(object sender, RoutedEventArgs e) + { + var mainWindow = Application.Current.MainWindow as MainWindow; + mainWindow?.BtnExit_Click(sender, e); + } } }