internal DesignerOptionCollection(DesignerOptionService service, DesignerOptionService.DesignerOptionCollection parent, string name, object value) { this._service = service; this._parent = parent; this._name = name; this._value = value; if (this._parent != null) { if (this._parent._children == null) { this._parent._children = new ArrayList(1); } this._parent._children.Add(this); } }
private static object RecurseFindValue(DesignerOptionService.DesignerOptionCollection options) { if (options._value != null) { return(options._value); } foreach (DesignerOptionService.DesignerOptionCollection options2 in options) { object obj2 = RecurseFindValue(options2); if (obj2 != null) { return(obj2); } } return(null); }
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext cxt, object value, Attribute[] attributes) { PropertyDescriptorCollection descriptors = new PropertyDescriptorCollection(null); DesignerOptionService.DesignerOptionCollection options = value as DesignerOptionService.DesignerOptionCollection; if (options != null) { foreach (DesignerOptionService.DesignerOptionCollection options2 in options) { descriptors.Add(new OptionPropertyDescriptor(options2)); } foreach (PropertyDescriptor descriptor in options.Properties) { descriptors.Add(descriptor); } } return(descriptors); }
protected virtual new bool ShowDialog(DesignerOptionService.DesignerOptionCollection options, Object optionObject) { return(default(bool)); }
protected virtual new void PopulateOptionCollection(DesignerOptionService.DesignerOptionCollection options) { }
protected DesignerOptionService.DesignerOptionCollection CreateOptionCollection(DesignerOptionService.DesignerOptionCollection parent, string name, Object value) { Contract.Ensures(Contract.Result <System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection>() != null); return(default(DesignerOptionService.DesignerOptionCollection)); }
internal OptionPropertyDescriptor(DesignerOptionService.DesignerOptionCollection option) : base(option.Name, null) { this._option = option; }
public int IndexOf(DesignerOptionService.DesignerOptionCollection value) { this.EnsurePopulated(); return(this._children.IndexOf(value)); }