From a990ec94eb01ecae04f4622392527673d3e7cf71 Mon Sep 17 00:00:00 2001 From: Space Time Date: Sun, 2 Mar 2025 11:04:31 +0800 Subject: [PATCH] =?UTF-8?q?1.1.4=20->=200.0.1=20=E7=AC=AC7=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 --- App.axaml.cs | 4 ++-- Program.cs | 2 +- Wins/AboutWin.axaml.cs | 22 +++++++++++----------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/App.axaml.cs b/App.axaml.cs index f8a69cc..dd97a25 100644 --- a/App.axaml.cs +++ b/App.axaml.cs @@ -8,7 +8,7 @@ using System.Linq; namespace Sheas_Cealer_Nix; -public partial class App : Application +internal partial class App : Application { public override void Initialize() => AvaloniaXamlLoader.Load(this); @@ -68,7 +68,7 @@ public partial class App : Application // Get an array of plugins to remove var dataValidationPluginsToRemove = BindingPlugins.DataValidators.OfType().ToArray(); - // remove each entry found + // Remove each entry found foreach (var plugin in dataValidationPluginsToRemove) BindingPlugins.DataValidators.Remove(plugin); } diff --git a/Program.cs b/Program.cs index d801d58..d2749f4 100644 --- a/Program.cs +++ b/Program.cs @@ -8,7 +8,7 @@ namespace Sheas_Cealer_Nix; internal sealed class Program { [STAThread] - public static async Task Main(string[] args) + private static async Task Main(string[] args) { try { diff --git a/Wins/AboutWin.axaml.cs b/Wins/AboutWin.axaml.cs index cf51a96..ff42e7f 100644 --- a/Wins/AboutWin.axaml.cs +++ b/Wins/AboutWin.axaml.cs @@ -49,21 +49,21 @@ public partial class AboutWin : Window }); } - private async void AboutButton_Click(object sender, RoutedEventArgs e) + private void AboutButton_Click(object sender, RoutedEventArgs e) { - Button senderButton = (Button)sender; + //Button senderButton = (Button)sender; - if (senderButton == VersionButton) - await MessageBoxManager.GetMessageBoxStandard(string.Empty, $"{AboutConst._ReleasePagePasswordLabel} 3wnj").ShowWindowDialogAsync(this); + //if (senderButton == VersionButton) + // await MessageBoxManager.GetMessageBoxStandard(string.Empty, $"{AboutConst._ReleasePagePasswordLabel} 3wnj").ShowWindowDialogAsync(this); - ProcessStartInfo processStartInfo = new(senderButton == EmailButton ? "mailto:" : string.Empty + ToolTip.GetTip(senderButton)) { UseShellExecute = true }; + //ProcessStartInfo processStartInfo = new(senderButton == EmailButton ? "mailto:" : string.Empty + ToolTip.GetTip(senderButton)) { UseShellExecute = true }; - try { Process.Start(processStartInfo); } - catch (UnauthorizedAccessException) - { - processStartInfo.Verb = "RunAs"; - Process.Start(processStartInfo); - } + //try { Process.Start(processStartInfo); } + //catch (UnauthorizedAccessException) + //{ + // processStartInfo.Verb = "RunAs"; + // Process.Start(processStartInfo); + //} } private void AboutWin_KeyDown(object sender, KeyEventArgs e)