Exemple #1
0
        public void EditValue(string key)
        {
            ColorRampForm dialog = new ColorRampForm((ColorRampEditor)this.Editor, key);

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                Value = dialog.Value;
            }
        }
Exemple #2
0
        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;
            }
        }