From a40b45835567e6e4bd02475abe4f4a2e5c341e90 Mon Sep 17 00:00:00 2001 From: Space Time Date: Wed, 5 Jun 2024 16:00:15 +0800 Subject: [PATCH] =?UTF-8?q?1.1.0=20->=201.1.1=20=E7=AC=AC11=E6=AC=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sheas-Cealer.csproj | 8 ++++---- Utils/IconRemover.cs | 2 +- Wins/AboutWin.xaml.cs | 6 ++++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Sheas-Cealer.csproj b/Sheas-Cealer.csproj index 11e2211..f01d2c3 100644 --- a/Sheas-Cealer.csproj +++ b/Sheas-Cealer.csproj @@ -8,10 +8,10 @@ Just Ceal It Space Time Space Time - 1.1.0 - 1.1.0 - 1.1.0 - 1.1.0 + 1.1.1 + 1.1.1 + 1.1.1 + 1.1.1 Tool;Sheas;Cealer;Sni Sheas-Cealer-Logo.ico Sheas Cealer Logo.png diff --git a/Utils/IconRemover.cs b/Utils/IconRemover.cs index f091fd2..403d105 100644 --- a/Utils/IconRemover.cs +++ b/Utils/IconRemover.cs @@ -5,7 +5,7 @@ using System.Windows.Interop; namespace Sheas_Cealer.Utils; -// 定义IconRemover +// 定义 IconRemover internal static partial class IconRemover { private const int GWL_EXSTYLE = -20; diff --git a/Wins/AboutWin.xaml.cs b/Wins/AboutWin.xaml.cs index cb1f3f5..f1aabec 100644 --- a/Wins/AboutWin.xaml.cs +++ b/Wins/AboutWin.xaml.cs @@ -14,10 +14,12 @@ public partial class AboutWin : Window private void AboutButton_Click(object sender, RoutedEventArgs e) { - if (sender as Button == VersionButton) + Button? senderButton = sender as Button; + + if (senderButton == VersionButton) MessageBox.Show("密码: 3wnj"); - ProcessStartInfo processStartInfo = new(sender as Button == EmailButton ? "mailto:" : string.Empty + (sender as Button)!.ToolTip) { UseShellExecute = true }; + ProcessStartInfo processStartInfo = new(senderButton == EmailButton ? "mailto:" : string.Empty + senderButton!.ToolTip) { UseShellExecute = true }; Process.Start(processStartInfo); }