Files
Needlework.Net/Needlework.Net.Desktop/ViewModels/HomeViewModel.cs
2024-08-15 17:06:17 -05:00

21 lines
511 B
C#

using CommunityToolkit.Mvvm.Input;
using System.Diagnostics;
namespace Needlework.Net.Desktop.ViewModels
{
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();
}
}
}