mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 10:10:48 +01:00
25 lines
570 B
C#
25 lines
570 B
C#
using CommunityToolkit.Mvvm.Input;
|
|
using System.Diagnostics;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Needlework.Net.ViewModels.Pages.About;
|
|
|
|
public partial class AboutViewModel : PageBase
|
|
{
|
|
public AboutViewModel() : base("About", "fa-solid fa-circle-info")
|
|
{
|
|
}
|
|
|
|
public override Task InitializeAsync()
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
[RelayCommand]
|
|
private void OpenUrl(string url)
|
|
{
|
|
var process = new Process() { StartInfo = new ProcessStartInfo(url) { UseShellExecute = true } };
|
|
process.Start();
|
|
}
|
|
}
|