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); }
public Task NewGameAsync(PyramidSolitaireMainViewModel model) { GameGoing = true; _model = model; return(base.NewGameAsync(model.DeckPile)); }