예제 #1
0
 private void BuildAttributes_CustomChoices()
 {
     if (oChoices != null)
     {
         CustomChoices.CustomChoicesAttributeList list = new CustomChoices.CustomChoicesAttributeList(oChoices.Items);
         ArrayList   attrs = new ArrayList();
         Attribute[] attrArray;
         attrs.Add(list);
         attrArray         = (System.Attribute[])attrs.ToArray(typeof(Attribute));
         oCustomAttributes = new AttributeCollection(attrArray);
     }
 }
예제 #2
0
 private void BuildAttributes_CustomChoices()
 {
     if (oChoices != null)
     {
         CustomChoices.CustomChoicesAttributeList list = new CustomChoices.CustomChoicesAttributeList(oChoices.Items);
         ArrayList attrs = new ArrayList();
         Attribute[] attrArray;
         attrs.Add(list);
         attrArray = (System.Attribute[])attrs.ToArray(typeof(Attribute));
         oCustomAttributes = new AttributeCollection(attrArray);
     }
 }