Ejemplo n.º 1
0
 public ItemVM(IItemProvider provider, ContainerVM parent, string name, bool canRename)
 {
     Provider  = provider;
     Parent    = parent;
     _name     = name;
     CanRename = canRename;
     MetaData  = new MetaData();
 }
Ejemplo n.º 2
0
        public ContainerVM(IItemProvider provider, ContainerVM parent, string name, bool canRename)
            : base(provider, parent, name, canRename)
        {
            ContainerChildren = new AutoDisposeObservableCollection <ContainerVM>();
            ContainerChildren.Add(PLACE_HOLDER); // dummy self for expander

            SingleChildren = new AutoDisposeObservableCollection <ItemVM>();

            AllChildren = new CompositeCollection();
            if (IncludeContainersInAll)
            {
                AllChildren.Add(new CollectionContainer {
                    Collection = ContainerChildren
                });
            }
            AllChildren.Add(new CollectionContainer {
                Collection = SingleChildren
            });
        }