void LikeUnLikeGameItem(GameShortDetails gameShortDetails) { if (gameShortDetails.IsLiked) { DependencyService.Get <LikedGameViewModel>().UnLikeGameItem(gameShortDetails); } else { DependencyService.Get <LikedGameViewModel>().AddLikedGame(gameShortDetails); } }
public InfoGamePage(GameShortDetails gameShortDetails) : this() { (BindingContext as InfoGameViewModel)?.InitializeComponent(gameShortDetails); }
void ViewGameItem(GameShortDetails gameShortDetails) { DependencyService.Get <MainPage>().Detail.Navigation.PushAsync(new InfoGamePage(gameShortDetails)); }