Beispiel #1
0
 public ScopeEntry()
 {
     Children = new ScopeEntryCollection();
 }
        private ScopeEntryCollection GetTree(IEnumerable<ILocalizedObject> lst)
        {
            var result = new ScopeEntryCollection();
            var scope = lst.Select(x => x.Scope).Distinct().OrderBy(x => x).ToList();
            var scopeWithoutTranslation = lst.Where(x => x.Translation == null).Select(x => x.Scope).Distinct().ToList();

            foreach (var item in scope)
                result.AddEntry(item, scopeWithoutTranslation.Contains(item));

            return result;
        }
 public ScopeEntry()
 {
     Children = new ScopeEntryCollection();
 }