private void okButton_Click(object sender, EventArgs e) { if (IsDuplicateName(newNameTextBox.Text)) { MessageBox.Show(ConstData.MessageDuplicateName, "Duplicate Name", MessageBoxButtons.OK); return; } m_settingWithNameOperation.Rename(newNameTextBox.Text); this.Close(); }
private void okButton_Click(object sender, EventArgs e) { m_settingWithNameOperation.Rename(newNameTextBox.Text); }