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