예제 #1
0
        private void GamesList_LeftButtonDown(object sender, RoutedEventArgs e)
        {
            var item = sender as System.Windows.Controls.ListViewItem;

            if (item != null && item.IsSelected)
            {
                GameListEntry entry = (GameListEntry)item.Content;
                ShowGameDetails(entry.Slug);
            }
        }
예제 #2
0
        private void GamesList_RightButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            var item = sender as System.Windows.Controls.ListViewItem;

            if (item != null && item.IsSelected)
            {
                GameListEntry entry = (GameListEntry)item.Content;
                ShowGameContextMenu(entry.Slug, sender as UIElement);
            }
        }