Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message) { BisleySolitaireMainViewModel model = (BisleySolitaireMainViewModel)BindingContext; var tempWaste = (WastePiles)model.WastePiles1 !; var tempMain = (MainPilesCP)model.MainPiles1 !; _main.Init(tempMain.Piles, ts.TagUsed); _discard.Init(tempWaste.Discards !, ts.TagUsed); return(Task.CompletedTask); }
Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message) { //todo: most of the time needs this. if in a case its not needed, then delete then. BisleySolitaireMainViewModel model = (BisleySolitaireMainViewModel)DataContext; var tempWaste = (WastePiles)model.WastePiles1 !; //_waste.Init(tempWaste.Piles); var tempMain = (MainPilesCP)model.MainPiles1 !; _main.Init(tempMain.Piles, ts.TagUsed); _discard.Init(tempWaste.Discards !, ts.TagUsed); return(Task.CompletedTask); }