Test WPF Desktop App with Caliburn And RestSharp
This commit is contained in:
18
LaDOSE.Src/LaDOSE.DesktopApp/ViewModels/ShellViewModel.cs
Normal file
18
LaDOSE.Src/LaDOSE.DesktopApp/ViewModels/ShellViewModel.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Caliburn.Micro;
|
||||
using LaDOSE.DesktopApp.Services;
|
||||
|
||||
namespace LaDOSE.DesktopApp.ViewModels
|
||||
{
|
||||
public class ShellViewModel : Conductor<IScreen>.Collection.OneActive
|
||||
{
|
||||
|
||||
public void LoadEvent()
|
||||
{
|
||||
ActivateItem(new WordPressViewModel(IoC.Get<RestService>()));
|
||||
}
|
||||
public void LoadGames()
|
||||
{
|
||||
ActivateItem(new GameViewModel(IoC.Get<RestService>()));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user