Exemplo n.º 1
0
        public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            if (value is string)
            {
                StringPickerForm form = new StringPickerForm(Engine.Graphics.GetMeshList());

                if (form.ShowDialog() == DialogResult.OK)
                    return form.SelectedItem;
            }

            return base.EditValue(context, provider, value);
        }
Exemplo n.º 2
0
        public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            if (value is string)
            {
                StringPickerForm form = new StringPickerForm(Engine.Graphics.GetMeshList());

                if (form.ShowDialog() == DialogResult.OK)
                {
                    return(form.SelectedItem);
                }
            }

            return(base.EditValue(context, provider, value));
        }