private void DoOpenGame() { GameExecutionInfo g = (GameExecutionInfo)GameListView.SelectedItem; if (g != null) { g.run(); } UpdateStatus(); }
private void GameListView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var listView = (ListView)sender; var item = listView.ContainerFromElement((DependencyObject)e.OriginalSource) as ListViewItem; if (item != null) { GameExecutionInfo g = (GameExecutionInfo)GameListView.SelectedItem; if (g != null) { g.run(); } } }