1.1.4 -> 0.0.1 第7次更新

This commit is contained in:
Space Time 2025-03-02 11:04:31 +08:00
parent b177853e6d
commit a990ec94eb
3 changed files with 14 additions and 14 deletions

View File

@ -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<DataAnnotationsValidationPlugin>().ToArray();
// remove each entry found
// Remove each entry found
foreach (var plugin in dataValidationPluginsToRemove)
BindingPlugins.DataValidators.Remove(plugin);
}

View File

@ -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
{

View File

@ -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)