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

            _deckGPile.Init(model.DeckPile, ts.TagUsed);

            return(Task.CompletedTask);
        }
예제 #2
0
        Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            AgnesSolitaireMainViewModel model = (AgnesSolitaireMainViewModel)DataContext;
            var tempWaste = (WastePiles)model.WastePiles1 !;

            _waste.Init(tempWaste.Piles);
            var tempMain = (MainPilesCP)model.MainPiles1 !;

            _main.Init(tempMain.Piles, ts.TagUsed);
            return(Task.CompletedTask);
        }