public LoginViewModel(IDataService dataService, IGameApp gameApp) { #if DEBUG Username = "******"; Password = "******"; #endif LoginCommand = new Command(o => { if (dataService.Login(Username, Password)) { gameApp.OpenPage(typeof(IMainViewModel)); } else { ErrorMessage = "Unable to login user"; } }, CredentialsAreOk); }
public void SelectGame(Game game) { _payload.PayloadObject = game; _app.OpenPage(typeof(IGameDetailViewModel), game); }