mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
19 lines
463 B
C#
19 lines
463 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using Artemis.UI.ViewModels.Interfaces;
|
|
using Stylet;
|
|
|
|
namespace Artemis.UI.ViewModels
|
|
{
|
|
public class HomeViewModel : Screen, IHomeViewModel
|
|
{
|
|
public string Title => "Home";
|
|
|
|
public void OpenUrl(string url)
|
|
{
|
|
// Don't open anything but valid URIs
|
|
if (Uri.IsWellFormedUriString(url, UriKind.RelativeOrAbsolute))
|
|
Process.Start(url);
|
|
}
|
|
}
|
|
} |