Ejemplo n.º 1
0
 public void setEvFolder(EnvironmentVariable ev, EvFolder folder)
 {
     if (folders.ContainsKey(ev))
     {
         folders[ev] = folder;
     }
     else
     {
         folders.Add(ev, folder);
     }
 }
Ejemplo n.º 2
0
 public void addEvFolder(EnvironmentVariable ev, string name, string folder)
 {
     if (folders.ContainsKey(ev))
     {
         EvFolder evf = folders[ev];
         evf.AddFolder(name, folder);
     }
     else
     {
         setEvFolder(ev, name, folder);
     }
 }
Ejemplo n.º 3
0
        protected virtual DetectedLocations getPaths(LocationPath get_me)
        {
            DetectedLocations return_me = new DetectedLocations();

            if (!ready)
            {
                return(return_me);
            }

            foreach (UserData user in this)
            {
                if (!user.hasFolderFor(get_me.EV))
                {
                    continue;
                }

                EvFolder evf = user.getFolder(get_me.EV);
                foreach (DetectedLocationPathHolder add_me in evf.createDetectedLocations(get_me, user.name))
                {
                    if (add_me.Exists)
                    {
                        return_me.Add(add_me);
                    }
                }
            }
            if (global.hasFolderFor(get_me.EV))
            {
                foreach (DetectedLocationPathHolder add_me in global.getFolder(get_me.EV).createDetectedLocations(get_me, null))
                {
                    if (add_me.Exists)
                    {
                        return_me.Add(add_me);
                    }
                }
            }
            return(return_me);
        }