private void TimeSetting_Click(object sender, RoutedEventArgs e) { if (GameListView.SelectedItems.Count > 0) { GameExecutionInfo i = (GameExecutionInfo)GameListView.SelectedItem; Dialog.TimeSettingDialog td = new Dialog.TimeSettingDialog(i); td.Owner = this; if (td.ShowDialog() == true) { UpdateStatus(); db.UpdateGameTimeInfo(i.UID, i.TotalPlayTime, i.FirstPlayTime, i.LastPlayTime); } } }