mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
And the winner is... Stylet!
This commit is contained in:
1 parent
73241793b8
commit
418b3adea7
24 files changed
+299
-370
No files matched your search
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Artemis.UI.ViewModels.Interfaces;
|
||||
using Stylet;
|
||||
|
||||
namespace Artemis.UI.ViewModels
|
||||
{
|
||||
public class HomeViewModel : Screen, IMainViewModel
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
public interface IMainViewModel : IArtemisViewModel
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user