commit d920f2ee67e47d1b5cd5629fb1f43510d0deb96c parent e3c0e03a70bba0433e0ec6fc04bb288650044adf Author: Minerva_juppiter <ryouturn@gmail.com> Date: Thu, 21 Mar 2024 16:03:48 +0900 クローズしたらアプリが終了するように変化 Diffstat:
| M | MainWindow.xaml | | | 3 | +-- |
| M | MainWindow.xaml.cs | | | 5 | ----- |
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/MainWindow.xaml b/MainWindow.xaml @@ -7,8 +7,7 @@ ui:WindowHelper.UseModernWindowStyle="True" xmlns:local="clr-namespace:BusynessNotification" mc:Ignorable="d" - Title="MainWindow" Height="450" Width="800" - Closing="Window_Closing"> + Title="MainWindow" Height="450" Width="900"> <Grid ShowGridLines="True"> <Grid.RowDefinitions> <RowDefinition/> diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs @@ -188,10 +188,5 @@ namespace BusynessNotification return value; } } - private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) - { - System.Windows.Application.Current.Shutdown(); - System.Diagnostics.Process.Start(System.Windows.Application.ResourceAssembly.Location); - } } } \ No newline at end of file