mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-07-17 17:09:19 +02:00
26 lines
575 B
C#
26 lines
575 B
C#
using System.Diagnostics;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Interactivity;
|
|
using SukiUI.Controls;
|
|
namespace StarterNG;
|
|
|
|
public partial class MainWindow : SukiWindow
|
|
{
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
private void linkClick(object? sender, RoutedEventArgs e)
|
|
{
|
|
if (sender is not Button btn)
|
|
return;
|
|
|
|
if (btn.Tag is not string url || string.IsNullOrWhiteSpace(url))
|
|
return;
|
|
|
|
Process.Start(new ProcessStartInfo(url)
|
|
{
|
|
UseShellExecute = true
|
|
});
|
|
}
|
|
} |