Пример #1
0
 private void BuildAttributes_ListboxEditor()
 {
     if (oDatasource != null)
     {
         UIListboxEditor.UIListboxDatasource          ds  = new UIListboxEditor.UIListboxDatasource(ref oDatasource);
         UIListboxEditor.UIListboxValueMember         vm  = new UIListboxEditor.UIListboxValueMember(sValueMember);
         UIListboxEditor.UIListboxDisplayMember       dm  = new UIListboxEditor.UIListboxDisplayMember(sDisplayMember);
         UIListboxEditor.UIListboxIsDropDownResizable ddr = null;
         ArrayList attrs = new ArrayList();
         attrs.Add(ds);
         attrs.Add(vm);
         attrs.Add(dm);
         if (bIsDropdownResizable)
         {
             ddr = new UIListboxEditor.UIListboxIsDropDownResizable();
             attrs.Add(ddr);
         }
         Attribute[] attrArray;
         attrArray         = (System.Attribute[])attrs.ToArray(typeof(Attribute));
         oCustomAttributes = new AttributeCollection(attrArray);
     }
 }
Пример #2
0
 private void BuildAttributes_ListboxEditor()
 {
     if (oDatasource != null)
     {
         UIListboxEditor.UIListboxDatasource ds = new UIListboxEditor.UIListboxDatasource(ref oDatasource);
         UIListboxEditor.UIListboxValueMember vm = new UIListboxEditor.UIListboxValueMember(sValueMember);
         UIListboxEditor.UIListboxDisplayMember dm = new UIListboxEditor.UIListboxDisplayMember(sDisplayMember);
         UIListboxEditor.UIListboxIsDropDownResizable ddr = null;
         ArrayList attrs = new ArrayList();
         attrs.Add(ds);
         attrs.Add(vm);
         attrs.Add(dm);
         if (bIsDropdownResizable)
         {
             ddr = new UIListboxEditor.UIListboxIsDropDownResizable();
             attrs.Add(ddr);
         }
         Attribute[] attrArray;
         attrArray = (System.Attribute[])attrs.ToArray(typeof(Attribute));
         oCustomAttributes = new AttributeCollection(attrArray);
     }
 }