mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 12:52:08 +08:00
1.1.4 -> 0.0.1 第7次更新
This commit is contained in:
parent
a068c65c8d
commit
a869cf2f18
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user