Ejemplo n.º 1
0
        // This method fires when the user wishes to edit a value.
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            StringListOption option = (StringListOption)value;
            StringListForm   form   = new StringListForm();

            InitializeDialog(form);

            form.Editor = this;
            form.AddFiles(option.StringList);

            if (form.ShowDialog() == DialogResult.OK)
            {
                option.StringList = form.Strings;

                return(option);
            }

            return(option);
        }