Started on the UI project

Added ReactiveUI, Material design and MahApps
Added the welcome page
This commit is contained in:
SpoinkyNL committed 2017-12-18 01:04:28 +01:00
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));
}
}
}