예제 #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);
        }
예제 #2
0
 protected virtual void OnEditorCreated(EditorEventArgs e)
 {
     EditorCreated?.Invoke(this, e);
 }