Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            HeapSolitaireMainViewModel model = (HeapSolitaireMainViewModel)DataContext;

            _mainPile.Init(model.Main1, ts.TagUsed);
            _wastePile.Init(model);

            return(Task.CompletedTask);
        }
        Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            BeleaguredCastleMainViewModel model = (BeleaguredCastleMainViewModel)DataContext;
            var tempMain = (MainPilesCP)model.MainPiles1 !;

            _main.Init(tempMain.Piles, ts.TagUsed);
            var tempWaste = (WastePiles)model.WastePiles1 !;

            _waste.Init(tempWaste.Piles, _main);
            return(Task.CompletedTask);
        }
        Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            BeleaguredCastleMainViewModel model = (BeleaguredCastleMainViewModel)BindingContext;
            var tempMain = (MainPilesCP)model.MainPiles1 !;

            _main.Init(tempMain.Piles, ts.TagUsed);
            var tempWaste = (WastePiles)model.WastePiles1 !;

            _waste.Init(tempWaste.Piles, _main);
            return(this.RefreshBindingsAsync(_aggregator));
        }
 Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
 {
     _waste.Init(_main);
     return(Task.CompletedTask);
 }