Пример #1
0
        public FilterCommand(IFilter filter)
        {
            Filter = filter;

            FindContainers();

            if (ImmediateContainerIfAny != null)
            {
                SourceCatalogueIfAny = ImmediateContainerIfAny.GetCatalogueIfAny();
            }
        }
Пример #2
0
        private void FindContainers()
        {
            ImmediateContainerIfAny = Filter.FilterContainer;
            AllContainersInEntireTreeFromRootDown = new List <IContainer>();

            if (ImmediateContainerIfAny != null)
            {
                RootContainerIfAny = ImmediateContainerIfAny.GetRootContainerOrSelf();

                //so we can determine whether we are being draged into a new heirarchy tree (copy) or just being dragged around inside our own tree (move)
                AllContainersInEntireTreeFromRootDown.Add(RootContainerIfAny);
                AllContainersInEntireTreeFromRootDown.AddRange(RootContainerIfAny.GetAllSubContainersRecursively());
            }
        }