Ejemplo n.º 1
0
 public override void Add(IXenObject o)
 {
     if (o is Folder)
     {
         GroupKey key = new GroupKey(grouping, o);
         if (!grouped.ContainsKey(key))
         {
             grouped[key] = new FolderGroup(search, grouping);
         }
     }
     else
     {
         if (ungrouped == null)
         {
             ungrouped = new LeafGroup(search);
         }
         ungrouped.Add(o);
     }
 }
Ejemplo n.º 2
0
 public override void Add(IXenObject o)
 {
     if (o is Folder)
     {
         GroupKey key = new GroupKey(grouping, o);
         if (!grouped.ContainsKey(key))
             grouped[key] = new FolderGroup(search, grouping);
     }
     else
     {
         if (ungrouped == null)
             ungrouped = new LeafGroup(search);
         ungrouped.Add(o);
     }
 }