private void GameTile_RightButtonDown(object sender, RoutedEventArgs e) { var item = sender as ListViewItem; if (item != null && item.IsSelected) { GameTileEntry entry = (GameTileEntry)item.Content; MainWindow.instance.ShowGameContextMenu(entry.Slug, sender as UIElement); } }
private void GameTile_LeftButtonDown(object sender, RoutedEventArgs e) { var item = sender as ListViewItem; if (item != null && item.IsSelected) { GameTileEntry entry = (GameTileEntry)item.Content; MainWindow.instance.ShowGameDetails(entry.Slug); } }