internal GridItemCategory(PropertyTab owner, string category) : base(owner) { this.Expandable = true; this.Expanded = true; this.category = category; }
internal GridItemProperty(PropertyTab owner, object value, bool expand) : this(owner) { this.Expanded = expand; this.TypeConverter = TypeDescriptor.GetConverter(value); this.Editor = (UITypeEditor)TypeDescriptor.GetEditor(value, typeof(UITypeEditor)); /* if (this.Editor == null) * { * var e = value?.GetType().GetCustomAttributes(typeof(EditorAttribute), true)?.Cast<EditorAttribute>().SingleOrDefault(); * if (e != null) * { * this.Editor = (UITypeEditor)Activator.CreateInstance(e.EditorType); * } * }*/ this._label = value?.GetType().Name; this.displayvalue = this.TypeConverter?.ConvertToString(this, value) ?? value?.ToString(); Initialize(value); }
internal GridItemRoot(PropertyTab owner, object value) : base(owner, value, true) { this.Value = value; }
internal GridItemArrayValue(PropertyTab owner) : base(owner) { }
protected GridItem(PropertyTab owner) { this.Tab = owner; this.OwnerGrid = this.Owner = owner.PropertyGrid; }
private GridItemProperty(PropertyTab owner) : base(owner) { }