protected async override Task ContinueOpenSavedAsync()
        {
            //anything else you need will be here
            var newList = SaveRoot.HeelList.GetNewObjectListFromDeckList(DeckList);

            GlobalClass.MainModel !.Heel1.OriginalList(newList);
            await base.ContinueOpenSavedAsync();
        }
        protected override void AfterShuffleCards()
        {
            var thisCol = CardList.Take(13).ToRegularDeckDict();

            CardList !.RemoveRange(0, 13);
            GlobalClass.MainModel !.Heel1.OriginalList(thisCol);
            thisCol = CardList.Take(1).ToRegularDeckDict();
            CardList.RemoveRange(0, 1);
            AfterShuffle(thisCol);
            CardList.Clear();
        }
Ejemplo n.º 3
0
        protected async override Task ContinueOpenSavedAsync()
        {
            //anything else you need will be here
            var newList = SaveRoot.HeelList.GetNewObjectListFromDeckList(DeckList);

            GlobalClass.MainModel !.Heel1.OriginalList(newList);
            if (newList.Count == 1)
            {
                GlobalClass.MainModel.Heel1.DeckStyle = DeckObservablePile <SolitaireCard> .EnumStyleType.AlwaysKnown;
            }
            else
            {
                GlobalClass.MainModel.Heel1.DeckStyle = DeckObservablePile <SolitaireCard> .EnumStyleType.Unknown;
            }
            await base.ContinueOpenSavedAsync();
        }