mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Started on the UI project
Added ReactiveUI, Material design and MahApps Added the welcome page
This commit is contained in:
1 parent
d64c1a660d
commit
fc996b7258
26 files changed
+869
-100
No files matched your search
@@ -0,0 +1,21 @@
|
||||
using System.Diagnostics;
|
||||
using System.Threading.Tasks;
|
||||
using ReactiveUI;
|
||||
|
||||
namespace Artemis.UI.ViewModels
|
||||
{
|
||||
public class MainViewModel : ReactiveObject
|
||||
{
|
||||
public ReactiveCommand OpenUrl { get; }
|
||||
|
||||
public MainViewModel()
|
||||
{
|
||||
OpenUrl = ReactiveCommand.CreateFromTask<string>(OpenUrlAsync);
|
||||
}
|
||||
|
||||
private async Task OpenUrlAsync(string url)
|
||||
{
|
||||
await Task.Run(() => Process.Start(url));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user