示例#1
0
 internal GridItemCategory(PropertyTab owner, string category)
     : base(owner)
 {
     this.Expandable = true;
     this.Expanded   = true;
     this.category   = category;
 }
示例#2
0
        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);
        }
示例#3
0
 internal GridItemRoot(PropertyTab owner, object value)
     : base(owner, value, true)
 {
     this.Value = value;
 }
示例#4
0
 internal GridItemArrayValue(PropertyTab owner)
     : base(owner)
 {
 }
示例#5
0
 protected GridItem(PropertyTab owner)
 {
     this.Tab       = owner;
     this.OwnerGrid = this.Owner = owner.PropertyGrid;
 }
示例#6
0
 private GridItemProperty(PropertyTab owner)
     : base(owner)
 {
 }