private void toolStripEditEntryName_Click(object sender, EventArgs e) { try { if (dataGridViewRegistry.SelectedCells.Count == 0) { return; } DataGridViewRow row = dataGridViewRegistry.Rows[dataGridViewRegistry.SelectedCells[0].RowIndex]; UtilsRegistryEntry entry = row.Tag as UtilsRegistryEntry; ChangeNameDialog changeDialog = new ChangeNameDialog(entry.Name, _currentLanguageID); if (DialogResult.OK == changeDialog.ShowDialog(this)) { entry.Name = changeDialog.EntryNewName; row.Cells[1].Value = changeDialog.EntryNewName; } } catch (Exception exception) { ErrorForm errorForm = new ErrorForm(exception, ErrorCategory.NonCritical, _currentLanguageID); errorForm.ShowDialog(this); } }
private void toolStripEditEntryName_Click(object sender, EventArgs e) { try { if (dataGridViewRegistry.SelectedCells.Count == 0) return; DataGridViewRow row = dataGridViewRegistry.Rows[dataGridViewRegistry.SelectedCells[0].RowIndex]; UtilsRegistryEntry entry = row.Tag as UtilsRegistryEntry; ChangeNameDialog changeDialog = new ChangeNameDialog(entry.Name, _currentLanguageID); if (DialogResult.OK == changeDialog.ShowDialog(this)) { entry.Name = changeDialog.EntryNewName; row.Cells[1].Value = changeDialog.EntryNewName; } } catch (Exception exception) { ErrorForm errorForm = new ErrorForm(exception, ErrorCategory.NonCritical, _currentLanguageID); errorForm.ShowDialog(this); } }