Exemple #1
0
        public bool GetChecked(string name)
        {
            INamedAttribute na = attributeList.Find(name);

            if (na != null)
            {
                return(filter.Contains(na));
            }
            return(false);
        }
Exemple #2
0
        static public bool IncludeAttributeList(IAttributeListContainer Including, IAttributeListContainer Included, string ListName, bool Initialize)
        {
            bool res = false;

            if (Including == null || Included == null)
            {
                return(res);
            }
            IAttributeList toAdd = Included.GetList(ListName);
            IAttributeList addTo = Including.GetList(ListName);

            if (toAdd == null || addTo == null)
            {
                return(res);
            }
            for (int i = 0; i < toAdd.Count; i++)
            {
                INamedAttribute na = toAdd.Item(i);
                if (addTo.Find(na.Name) == null)
                {
                    addTo.Add(na);
                    res = true;
                }
            }
            if (res)
            {
                UpdateLists(Including, false);
            }
            return(res);
        }