예제 #1
0
 public void Replace(string Name, object Value)
 {
     foreach (CustomProperty prop in base.List)
     {
         if (prop.Name == Name)
         {
             CustomProperty newProp = new CustomProperty(Name, Value, false, true);
             int index = base.List.IndexOf(prop);
             base.List[index] = newProp;
             return;
         }
     }
 }
예제 #2
0
 public CustomPropertyDescriptor(ref CustomProperty myProperty, Attribute [] attrs)
     : base(myProperty.Name, attrs)
 {
     m_Property = myProperty;
 }
예제 #3
0
 /// <summary>
 /// Add CustomProperty to Collectionbase List
 /// </summary>
 /// <param name="Value"></param>
 public void Add(CustomProperty Value)
 {
     base.List.Add(Value);
 }