public void EditValue(string key) { ColorRampForm dialog = new ColorRampForm((ColorRampEditor)this.Editor, key); if (dialog.ShowDialog(this) == DialogResult.OK) { Value = dialog.Value; } }
public void NewValue() { ColorRampForm dialog = new ColorRampForm((ColorRampEditor)this.Editor, null); if (dialog.ShowDialog(this) == DialogResult.OK) { ColorRampConverter converter = (ColorRampConverter)this.Converter; converter.AddValue(dialog.Value); Value = dialog.Value; } }