public List <TEntity> GetAll()
        {
            if (WorkOnTheMap == true)
            {
                BringInstruction();
            }

            if (CategoryMapOption == true)
            {
                ca.UpdateList(ExternalLocation);

                DEntity d     = new DEntity();
                Envoy   envoy = new Envoy();

                d.Name           = SetName;
                d.Root           = SetRoot;
                d.TargetLocation = ExternalLocation;

                TEntity t = new TEntity();

                List <TEntity> allList = new List <TEntity>();

                if (ca.s.Count > 0)
                {
                    foreach (var item in ca.s)
                    {
                        d.CategorizeName = item.Name;
                        d = envoy.Before(t, d);
                        foreach (var item2 in envoy.DataToList <TEntity>(d))
                        {
                            allList.Add(item2);
                        }
                    }
                }
                else // Tekil dosyalar için önemli
                {
                    d = envoy.Before(t, d);
                    foreach (var item2 in envoy.DataToList <TEntity>(d))
                    {
                        allList.Add(item2);
                    }
                }
                return(allList);
            }
            else
            {
                return(null);
            }
        }
示例#2
0
        internal void UpdateList(string ExternalLocation)
        {
            s.Clear();
            DEntity d = new DEntity();

            d.TargetLocation = ExternalLocation;
            d = e.Before(new ECategory(), d);
            s = e.DataToList <ECategory>(d);
        }
示例#3
0
        internal void UpdateList(string externalLocation)
        {
            s.Clear();
            DEntity d = new DEntity();

            d.TargetLocation = externalLocation;
            d = e.Before(new EStatus(), d);
            s = e.DataToList <EStatus>(d);
        }
示例#4
0
        private void UpdateList(string ExternalLocation)
        {
            l.Clear();
            DEntity d = new DEntity();
            Envoy   e = new Envoy();

            d.TargetLocation = ExternalLocation;
            d = e.Before(new EMap(), d);
            l = e.DataToList <EMap>(d);
        }
        public List <TEntity> GetCategorized(string categorizedName)
        {
            if (WorkOnTheMap == true)
            {
                BringInstruction();
            }

            DEntity d     = new DEntity();
            Envoy   envoy = new Envoy();

            d.Name           = SetName;
            d.Root           = SetRoot;
            d.CategorizeName = categorizedName;
            d.TargetLocation = ExternalLocation;

            TEntity t = new TEntity();

            d = envoy.Before(t, d);
            return(envoy.DataToList <TEntity>(d));
        }