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