예제 #1
0
        Task IUIView.TryActivateAsync()
        {
            PyramidSolitaireMainViewModel model = (PyramidSolitaireMainViewModel)DataContext;

            _deckGPile.Init(model.DeckPile, ts.TagUsed);
            _discardGPile.Init(model.Discard, ts.TagUsed);
            _currentCard.Init(model.CurrentPile, ts.TagUsed);
            _playerBoard.LoadList(model.PlayList1, ts.TagUsed);
            _triangle.Init(model.GameBoard1 !);
            return(Task.CompletedTask);
        }
예제 #2
0
 public Task NewGameAsync(PyramidSolitaireMainViewModel model)
 {
     GameGoing = true;
     _model    = model;
     return(base.NewGameAsync(model.DeckPile));
 }