Ejemplo n.º 1
0
        Task IUIView.TryActivateAsync()
        {
            KlondikeSolitaireMainViewModel model = (KlondikeSolitaireMainViewModel)DataContext;

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

            return(Task.CompletedTask);
        }
Ejemplo n.º 2
0
        Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            KlondikeSolitaireMainViewModel model = (KlondikeSolitaireMainViewModel)BindingContext;
            var tempWaste = (WastePiles)model.WastePiles1 !;

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

            _main.Init(tempMain.Piles, ts.TagUsed);

            return(Task.CompletedTask);
        }
Ejemplo n.º 3
0
        Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            //todo:  most of the time needs this.  if in a case its not needed, then delete then.
            KlondikeSolitaireMainViewModel model = (KlondikeSolitaireMainViewModel)DataContext;
            var tempWaste = (WastePiles)model.WastePiles1 !;

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

            _main.Init(tempMain.Piles, ts.TagUsed);

            return(Task.CompletedTask);
        }