mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 18:20:47 +01:00
20 lines
455 B
C#
20 lines
455 B
C#
using CommunityToolkit.Mvvm.Input;
|
|
using System.Diagnostics;
|
|
|
|
namespace Needlework.Net.ViewModels.Pages;
|
|
|
|
public partial class HomeViewModel : PageBase
|
|
{
|
|
public HomeViewModel() : base("Home", "home", int.MinValue) { }
|
|
|
|
[RelayCommand]
|
|
private void OpenUrl(string url)
|
|
{
|
|
var process = new Process()
|
|
{
|
|
StartInfo = new ProcessStartInfo(url) { UseShellExecute = true }
|
|
};
|
|
process.Start();
|
|
}
|
|
}
|