Пример #1
0
        private void ListView_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Genre genre = new Genre();

            foreach (var item in genreService.GetGenres())
            {
                if (item.Name == ((ListViewModel)(listView.SelectedItem)).Name)
                {
                    genre = new Genre()
                    {
                        Id = item.Id, Name = item.Name
                    }
                }
                ;
            }
            GamePage page = new GamePage(genre, CurrentUserId);

            NavigationService.Navigate(page);
        }
    }
Пример #2
0
        private void Lbl_TitleGames_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            GamePage page = new GamePage(Genre, CurrentUserId);

            NavigationService.Navigate(page);
        }