diff --git a/MainWindow.axaml b/MainWindow.axaml index 823fbd3..1373517 100644 --- a/MainWindow.axaml +++ b/MainWindow.axaml @@ -16,7 +16,7 @@ - + diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index a7a84dd..40531cc 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.IO; using System.Threading.Tasks; using Avalonia.Controls; @@ -74,19 +75,25 @@ public partial class MainWindow : Window throw new NotImplementedException(); } - private void MnuSettings_OnClick(object? sender, RoutedEventArgs e) - { - throw new NotImplementedException(); - } - private void MnuHelp_OnClick(object? sender, RoutedEventArgs e) { throw new NotImplementedException(); } - private void MnuGithub_OnClick(object? sender, RoutedEventArgs e) + private void MnuGit_OnClick(object? sender, RoutedEventArgs e) { - throw new NotImplementedException(); + try + { + Process.Start(new ProcessStartInfo + { + FileName = "https://git.mypapercloud.de/fierke/logofclient", + UseShellExecute = true // Wichtig für Plattformübergreifendes Öffnen + }); + } + catch (Exception ex) + { + Console.WriteLine($"Fehler beim Öffnen des Links: {ex.Message}"); + } } private async void BtnChooseFile_OnClick(object? sender, RoutedEventArgs e)