Пример #1
0
        internal void GetAll(RuleApplicationDef source, ObservableCollection <Artifact> list)
        {
            _importHash = "";  //reset
            if (source != null)
            {
                string key = MakeKey(source);

                /*
                 * foreach (RuleRepositoryDefBase def in source.AsEnumerable())
                 * {
                 *  ProcessDef(def, list, key);
                 * }
                 * foreach (RuleRepositoryDefBase def in source.Categories)
                 * {
                 *  ProcessDef(def,list,key);
                 * }
                 */
                RuleRepositoryDefCollection[] colls = source.GetAllChildCollections();
                foreach (RuleRepositoryDefCollection coll in colls)
                {
                    foreach (RuleRepositoryDefBase def in coll)
                    {
                        ProcessChildren(def, list, key);
                    }
                }
            }
        }