コード例 #1
0
        //TODO: Resolve

        //////internal void NotifyRelatesPropertyChanged(Organization relatedOrganization)
        //////{
        //////        relatedOrganization.NotifyPropertyChanged("IsRelatedBy");
        //////        relatedOrganization.NotifyPropertyChanged("Relates");
        //////        relatedOrganization.NotifyPropertyChanged("IsRelatedByString");
        //////        relatedOrganization.NotifyPropertyChanged("RelatesString");
        //////        NotifyPropertyChanged("IsRelatedBy");
        //////        NotifyPropertyChanged("Relates");
        //////        NotifyPropertyChanged("IsRelatedByString");
        //////        NotifyPropertyChanged("RelatesString");
        //////}

        #endregion

        internal bool IsEquivalent(IfcOrganization o)
        {
            if (o == null)
            {
                return(false);
            }
            return(o.Addresses.IsEquivalent(Addresses) &&
                   o.Description == Description &&
                   o.Id == Id &&
                   o.Name == Name &&
                   o.Roles.IsEquivalent(Roles));
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            // Check for null
            if (obj == null)
            {
                return(false);
            }

            // Check for type
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            // Cast as IfcRoot
            IfcOrganization root = (IfcOrganization)obj;

            return(this == root);
        }
コード例 #3
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _thePerson = (IfcPerson)(value.EntityVal);
                return;

            case 1:
                _theOrganization = (IfcOrganization)(value.EntityVal);
                return;

            case 2:
                _roles.InternalAdd((IfcActorRole)value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #4
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _name = value.StringVal;
                return;

            case 1:
                _description = value.StringVal;
                return;

            case 2:
                _relatingOrganization = (IfcOrganization)(value.EntityVal);
                return;

            case 3:
                _relatedOrganizations.InternalAdd((IfcOrganization)value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #5
0
        public void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _name = value.StringVal;
                break;

            case 1:
                _description = value.StringVal;
                break;

            case 2:
                _relatingOrganization = value.EntityVal as IfcOrganization;
                break;

            case 3:
                ((IXbimNoNotifyCollection)_relatingOrganizations).Add(value.EntityVal as IfcOrganization);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #6
0
        public virtual void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _thePerson = value.EntityVal as IfcPerson;
                break;

            case 1:
                _theOrganization = value.EntityVal as IfcOrganization;
                break;

            case 2:
                if (_roles == null)
                {
                    _roles = new ActorRoleCollection(this);
                }
                ((IXbimNoNotifyCollection)_roles).Add(value.EntityVal as IfcActorRole);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }