Exemple #1
0
        ///////////////////////////////////////////////////////////////////////
        #region Public Methods

        /// <summary>
        /// Returns a writeable copy of the current attributes.
        /// </summary>
        public Technosoftware.DaAeHdaClient.Ae.TsCAeAttributeDictionary GetAttributes()
        {
            Technosoftware.DaAeHdaClient.Ae.TsCAeAttributeDictionary attributes = new Technosoftware.DaAeHdaClient.Ae.TsCAeAttributeDictionary();

            IDictionaryEnumerator enumerator = _attributes.GetEnumerator();

            while (enumerator.MoveNext())
            {
                int categoryID = (int)enumerator.Key;
                AttributeCollection attributeIDs = (AttributeCollection)enumerator.Value;

                attributes.Add(categoryID, attributeIDs.ToArray());
            }

            return(attributes);
        }
        /// <summary>
        /// Returns a writable copy of the current attributes.
        /// </summary>
        public TsCAeAttributeDictionary GetAttributes()
        {
            LicenseHandler.ValidateFeatures(LicenseHandler.ProductFeature.AlarmsConditions);
            TsCAeAttributeDictionary attributes = new TsCAeAttributeDictionary();

            IDictionaryEnumerator enumerator = attributes_.GetEnumerator();

            while (enumerator.MoveNext())
            {
                if (enumerator.Key != null)
                {
                    var categoryId = (int)enumerator.Key;
                    AttributeCollection attributeIDs = (AttributeCollection)enumerator.Value;

                    attributes.Add(categoryId, attributeIDs.ToArray());
                }
            }

            return(attributes);
        }