Filtration/Filtration/ViewModels/StartPageViewModel.cs
Ben Wallis c6d75cfff6 Implemented auto-update using Squirrel
Reworked SettingsPageView to not need a Save Button and added a folder browser control
2018-09-26 18:40:54 +01:00

46 lines
1.2 KiB
C#

using System.Threading.Tasks;
using Filtration.Common.ViewModels;
using Filtration.Interface;
using GalaSoft.MvvmLight.CommandWpf;
using GalaSoft.MvvmLight.Messaging;
namespace Filtration.ViewModels
{
internal interface IStartPageViewModel : IDocument
{
}
internal class StartPageViewModel : PaneViewModel, IStartPageViewModel
{
public StartPageViewModel()
{
Title = "Start Page";
OpenScriptCommand = new RelayCommand(OnOpenScriptCommand);
NewScriptCommand = new RelayCommand(OnNewScriptCommand);
}
public RelayCommand OpenScriptCommand { get; }
public RelayCommand NewScriptCommand { get; }
public bool IsScript => false;
public bool IsTheme => false;
public Task Close()
{
throw new System.NotImplementedException();
}
public RelayCommand CloseCommand { get; }
private static void OnOpenScriptCommand()
{
Messenger.Default.Send(new NotificationMessage("OpenScript"));
}
private static void OnNewScriptCommand()
{
Messenger.Default.Send(new NotificationMessage("NewScript"));
}
}
}