コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
 }
コード例 #3
0
            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);
            }
コード例 #4
0
 protected virtual new bool ShowDialog(DesignerOptionService.DesignerOptionCollection options, Object optionObject)
 {
     return(default(bool));
 }
コード例 #5
0
 protected virtual new void PopulateOptionCollection(DesignerOptionService.DesignerOptionCollection options)
 {
 }
コード例 #6
0
        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));
        }
コード例 #7
0
 internal OptionPropertyDescriptor(DesignerOptionService.DesignerOptionCollection option) : base(option.Name, null)
 {
     this._option = option;
 }
コード例 #8
0
 public int IndexOf(DesignerOptionService.DesignerOptionCollection value)
 {
     this.EnsurePopulated();
     return(this._children.IndexOf(value));
 }
 internal OptionPropertyDescriptor(DesignerOptionService.DesignerOptionCollection option) : base(option.Name, null)
 {
     this._option = option;
 }
 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);
     }
 }