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)