private void GameProperty_Click(object sender, RoutedEventArgs e) { if (GameListView.SelectedItems.Count > 0) { GameExecutionInfo i = (GameExecutionInfo)GameListView.SelectedItem; Dialog.GamePropertyDialog gd = new Dialog.GamePropertyDialog(i); gd.Owner = this; if (gd.ShowDialog() == true) { UpdateStatus(); db.UpdateGameInfoAndExec(i); } } }