Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message) { BlockElevenSolitaireMainViewModel model = (BlockElevenSolitaireMainViewModel)BindingContext; var tempWaste = (WastePiles)model.WastePiles1 !; _waste.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. BlockElevenSolitaireMainViewModel model = (BlockElevenSolitaireMainViewModel)DataContext; var tempWaste = (WastePiles)model.WastePiles1 !; _waste.Init(tempWaste.Discards !, ts.TagUsed); return(Task.CompletedTask); }