Ejemplo n.º 1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 5:
                _name = value.StringVal;
                return;

            case 6:
                _description = value.StringVal;
                return;

            case 7:
                _documentType = (CobieDocumentType)(value.EntityVal);
                return;

            case 8:
                _approvalType = (CobieApprovalType)(value.EntityVal);
                return;

            case 9:
                _stage = (CobieStageType)(value.EntityVal);
                return;

            case 10:
                _uRL = value.StringVal;
                return;

            case 11:
                _reference = value.StringVal;
                return;

            case 12:
                _directory = value.StringVal;
                return;

            case 13:
                _file = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Ejemplo n.º 2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 5:
                _name = value.StringVal;
                return;

            case 6:
                _description = value.StringVal;
                return;

            case 7:
                _stage = (CobieStageType)(value.EntityVal);
                return;

            case 8:
                _value = (AttributeValue)(value.EntityVal);
                return;

            case 9:
                _unit = value.StringVal;
                return;

            case 10:
                _allowedValues.InternalAdd(value.StringVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }