From 7d2fe51b41e7d778df5684a7f4f029f2db537f44 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Sat, 22 Jun 2019 13:20:31 -0700 Subject: [PATCH] Implement File > Exit --- SourceGenWPF/WpfGui/MainWindow.xaml | 13 ++++++++----- SourceGenWPF/WpfGui/MainWindow.xaml.cs | 6 +++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/SourceGenWPF/WpfGui/MainWindow.xaml b/SourceGenWPF/WpfGui/MainWindow.xaml index 9effcee..96f3f22 100644 --- a/SourceGenWPF/WpfGui/MainWindow.xaml +++ b/SourceGenWPF/WpfGui/MainWindow.xaml @@ -54,7 +54,8 @@ limitations under the License. - + + @@ -102,8 +103,10 @@ limitations under the License. CanExecute="IsProjectOpen" Executed="CloseCmd_Executed"/> - + + - + @@ -172,7 +175,7 @@ limitations under the License. - + diff --git a/SourceGenWPF/WpfGui/MainWindow.xaml.cs b/SourceGenWPF/WpfGui/MainWindow.xaml.cs index abc8c2c..431cc86 100644 --- a/SourceGenWPF/WpfGui/MainWindow.xaml.cs +++ b/SourceGenWPF/WpfGui/MainWindow.xaml.cs @@ -754,10 +754,14 @@ namespace SourceGenWPF.WpfGui { mMainCtrl.EditAddress(); } - private void EditStatusFlags_Executed(object sender, ExecutedRoutedEventArgs e) { + private void EditStatusFlagsCmd_Executed(object sender, ExecutedRoutedEventArgs e) { mMainCtrl.EditStatusFlags(); } + private void ExitCmd_Executed(object sender, ExecutedRoutedEventArgs e) { + Close(); + } + private void HelpCmd_Executed(object sender, ExecutedRoutedEventArgs e) { mMainCtrl.ShowHelp(); }