Task IUIView.TryActivateAsync() { VegasSolitaireMainViewModel model = (VegasSolitaireMainViewModel)DataContext; _deckGPile.Init(model.DeckPile, ts.TagUsed); _discardGPile.Init(model.MainDiscardPile, ts.TagUsed); return(Task.CompletedTask); }
Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message) { VegasSolitaireMainViewModel model = (VegasSolitaireMainViewModel)BindingContext; var tempWaste = (WastePiles)model.WastePiles1 !; _waste.Init(tempWaste.Piles); var tempMain = (MainPilesCP)model.MainPiles1 !; _main.Init(tempMain.Piles, ts.TagUsed); return(Task.CompletedTask); }