Ejemplo n.º 1
0
        public override IPropertyValueEditor CreateEditor(PropertyDescriptor propertyDescriptor, object targetObject)
        {
            var            args = new EditorCreateEventArgs(propertyDescriptor);
            ComboBoxEditor editor;

            EditorCreating?.Invoke(this, args);
            if (args.Editor is null)
            {
                editor               = new ComboBoxEditor();
                editor.Style         = eDotNetBarStyle.StyleManagerControlled;
                editor.DrawMode      = DrawMode.OwnerDrawFixed;
                editor.DropDownWidth = 250;
            }
            else
            {
                editor = args.Editor;
            }

            EditorCreated?.Invoke(this, new EditorCreateEventArgs(propertyDescriptor, editor));
            return(editor);
        }
Ejemplo n.º 2
0
 protected virtual void OnEditorCreated(EditorEventArgs e)
 {
     EditorCreated?.Invoke(this, e);
 }