Ejemplo n.º 1
0
        protected override object SetItems(object editValue, object[] value)
        {
            AltIDGroupList altIdGroupList = editValue as AltIDGroupList;

            altIdGroupList.instrument.instrument.SecurityAltIDGroup.Clear();
            foreach (AltIDGroup altIdGroup in value)
            {
                altIdGroupList.instrument.instrument.SecurityAltIDGroup.Add((FIXGroup)altIdGroup.group);
            }
            return((object)altIdGroupList);
        }
Ejemplo n.º 2
0
        protected override object SetItems(object editValue, object[] value)
        {
            AltIDGroupList altIDGroupList = editValue as AltIDGroupList;

            altIDGroupList.instrument.instrument.SecurityAltIDGroup.Clear();
            for (int i = 0; i < value.Length; i++)
            {
                AltIDGroup altIDGroup = (AltIDGroup)value[i];
                altIDGroupList.instrument.instrument.SecurityAltIDGroup.Add(altIDGroup.group);
            }
            return(altIDGroupList);
        }
        public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
        {
            PropertyDescriptorCollection descriptorCollection = new PropertyDescriptorCollection((PropertyDescriptor[])null);
            AltIDGroupList altIdGroupList = (AltIDGroupList)value;
            int            num            = 0;

            foreach (AltIDGroup group in altIdGroupList)
            {
                AltIDGroupPropertyDescriptor propertyDescriptor = new AltIDGroupPropertyDescriptor(group, num++);
                descriptorCollection.Add((PropertyDescriptor)propertyDescriptor);
            }
            return(descriptorCollection);
        }