Files
LaDOSE/LaDOSE.Src/LaDOSE.DesktopApp/ViewModels/ShellViewModel.cs
2019-03-09 14:03:25 +01:00

27 lines
686 B
C#

using Caliburn.Micro;
using LaDOSE.DesktopApp.Services;
namespace LaDOSE.DesktopApp.ViewModels
{
public class ShellViewModel : Conductor<IScreen>.Collection.AllActive
{
protected override void OnInitialize()
{
var wordPressViewModel = new WordPressViewModel(IoC.Get<RestService>());
ActivateItem(wordPressViewModel);
base.OnInitialize();
}
public void LoadEvent()
{
ActivateItem(new WordPressViewModel(IoC.Get<RestService>()));
}
public void LoadGames()
{
ActivateItem(new GameViewModel(IoC.Get<RestService>()));
}
}
}