using System.Diagnostics; using System.Reflection; using System.Windows; using System.Windows.Navigation; namespace WebhookServer.Gui.Views; public partial class AboutDialog : Window { public AboutDialog() { InitializeComponent(); var asm = Assembly.GetExecutingAssembly(); var info = asm.GetCustomAttribute()?.InformationalVersion ?? asm.GetName().Version?.ToString() ?? "0.0.0"; VersionText.Text = $"Version {info}"; } private void OnHyperlink(object sender, RequestNavigateEventArgs e) { Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri) { UseShellExecute = true }); e.Handled = true; } private void OnOk(object sender, RoutedEventArgs e) => Close(); }