BusynessNotification

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c33a05bbe92dd2c4489449f5a54e54d530e5267f
parent fc7be6aa5659ab5613e18a7cface710b9295a75c
Author: Minerva_juppiter <ryouturn@gmail.com>
Date:   Sun, 31 Mar 2024 22:04:21 +0900


Diffstat:
MBusynessNotification.csproj | 9+--------
MMainWindow.xaml.cs | 8++------
2 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/BusynessNotification.csproj b/BusynessNotification.csproj @@ -6,7 +6,7 @@ <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> <UseWPF>true</UseWPF> - <UseWindowsForms>true</UseWindowsForms> + <UseWindowsForms>True</UseWindowsForms> <ApplicationIcon>BussynessNotificaionIcon.ico</ApplicationIcon>  </PropertyGroup> @@ -21,13 +21,6 @@ </ItemGroup> <ItemGroup> - <Reference Include="System.Windows.Forms"> - <SpecificVersion>False</SpecificVersion> - <EmbedInteropTypes>True</EmbedInteropTypes> - </Reference> - </ItemGroup> - - <ItemGroup> <PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" /> <PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" /> diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs @@ -62,7 +62,6 @@ namespace BusynessNotification string caption = "Failed to get setting"; MessageBoxButton button = MessageBoxButton.OK; MessageBoxImage icon = MessageBoxImage.Warning; - MessageBoxResult result; System.Windows.MessageBox.Show(messageBoxText, caption, button, icon); } @@ -170,9 +169,8 @@ namespace BusynessNotification string caption = "Failed to save setting"; MessageBoxButton button = MessageBoxButton.OK; MessageBoxImage icon = MessageBoxImage.Warning; - MessageBoxResult result; - result = System.Windows.MessageBox.Show(messageBoxText, caption, button, icon); + System.Windows.MessageBox.Show(messageBoxText, caption, button, icon); } finally { @@ -180,9 +178,8 @@ namespace BusynessNotification string caption = "Finish saving setting prosess"; MessageBoxButton button = MessageBoxButton.OK; MessageBoxImage icon = MessageBoxImage.Information; - MessageBoxResult result; - result = System.Windows.MessageBox.Show(messageBoxText, caption, button, icon); + System.Windows.MessageBox.Show(messageBoxText, caption, button, icon); } } @@ -195,7 +192,6 @@ namespace BusynessNotification string caption = "unexpected input"; MessageBoxButton button = MessageBoxButton.OK; MessageBoxImage icon = MessageBoxImage.Warning; - MessageBoxResult result; System.Windows.MessageBox.Show(messageBoxText, caption, button, icon); value = oldValue;