private void ProcessAttributes(AFAttributeTemplates attributes, string prefix, TypeFilterHandler filterHandler, ComboBox comboBox)
        {
            foreach (AFAttributeTemplate attr in attributes)
            {
                string attrName = prefix + "|" + attr.Name;

                //if (attr != dataReference.Attribute.Template) {
                if (filterHandler(attr.Type))
                {
                    comboBox.Items.Add(attrName);
                }
                //}

                ProcessAttributes(attr.AttributeTemplates, attrName, filterHandler, comboBox);
            }
        }
Exemplo n.º 2
0
        private void ProcessAttributes(AFAttributeTemplates attributes, string prefix, ComboBox comboBox)
        {
            foreach (AFAttributeTemplate attr in attributes)
            {
                string attrName = prefix + "|" + attr.Name;

                //if (attr != dataReference.Attribute.Template) {
                if (attr.DataReference != null && attr.DataReference.PIPoint != null)
                {
                    comboBox.Items.Add(attrName);
                }
                //}

                ProcessAttributes(attr.AttributeTemplates, attrName, comboBox);
            }
        }
        private void ProcessAttributes(AFAttributeTemplates attributes, string prefix)
        {
            foreach (AFAttributeTemplate attr in attributes)
            {
                if (attr == dataReference.Attribute)
                {
                    continue;
                }

                string attrName = prefix + "|" + attr.Name;

                if (BitmaskCore.IsIntVal(attr.Type))
                {
                    txtAttribute.Items.Add(attrName);
                }

                ProcessAttributes(attr.AttributeTemplates, attrName);
            }
        }
        private void ProcessAttributes(AFElementTemplate templ, AFAttributeTemplates attributes, string prefix)
        {
            foreach (AFAttributeTemplate attr in attributes)
            {
                if (attr == fDataReference.Attribute)
                {
                    continue;
                }

                string attrName = prefix + "|" + attr.Name;

                if (Extensions.IsNumericType(attr.Type))
                {
                    txtAttribute.Items.Add(attrName);
                }

                ProcessAttributes(templ, attr.AttributeTemplates, attrName);
            }
        }