/// <summary> /// Invokes changing of the Preset's description /// </summary> public void ChangeDescription() { PresetTextInputDialog inputDialog = new PresetTextInputDialog(); if (presetButton.Tag != null) { inputDialog.PresetText = presetButton.ButtonText; } if (DialogResult.OK == inputDialog.ShowDialog(this)) { PresetDescription = inputDialog.PresetText.Trim(); } // Raise a save event - Renaming the description of a preset should be persisted immediately if (PresetDescriptionChanged != null) { PresetDescriptionChanged(this, new EventArgs()); } }