Beispiel #1
0
        Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            GrandfathersClockMainViewModel model = (GrandfathersClockMainViewModel)BindingContext;
            var tempWaste = (WastePiles)model.WastePiles1 !;

            _piles.Init(tempWaste.Piles);
            var tempMain = (CustomMain)model.MainPiles1 !;

            _clock.LoadControls(tempMain);
            return(this.RefreshBindingsAsync(_aggregator));
        }
Beispiel #2
0
        Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            PersianSolitaireMainViewModel model = (PersianSolitaireMainViewModel)BindingContext;
            var tempWaste = (WastePiles)model.WastePiles1 !;

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

            _main.Init(tempMain.Piles, ts.TagUsed);
            return(Task.CompletedTask);
        }
        Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            BakersDozenSolitaireMainViewModel model = (BakersDozenSolitaireMainViewModel)BindingContext;
            var tempWaste = (WastePiles)model.WastePiles1 !;

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

            _main.Init(tempMain.Piles, ts.TagUsed);
            return(this.RefreshBindingsAsync(_aggregator));
        }
Beispiel #4
0
        Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            //todo:  most of the time needs this.  if in a case its not needed, then delete then.
            EightOffSolitaireMainViewModel model = (EightOffSolitaireMainViewModel)BindingContext;
            var tempWaste = (WastePiles)model.WastePiles1 !;

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

            _main.Init(tempMain.Piles, ts.TagUsed);
            _reserve.LoadList(model.ReservePiles1, ts.TagUsed);
            return(Task.CompletedTask);
        }
        Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            AlternationSolitaireSaveInfo thisSave = cons !.Resolve <AlternationSolitaireSaveInfo>();
            //todo:  most of the time needs this.  if in a case its not needed, then delete then.
            AlternationSolitaireMainViewModel model = (AlternationSolitaireMainViewModel)BindingContext;
            var tempWaste = (WastePiles)model.WastePiles1 !;

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

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

            return(this.RefreshBindingsAsync(_aggregator));
        }