示例#1
0
        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);
        }
示例#2
0
 public void SelectGame(Game game)
 {
     _payload.PayloadObject = game;
     _app.OpenPage(typeof(IGameDetailViewModel), game);
 }