Ejemplo n.º 1
0
 /// <summary>
 /// Recursively descends into the directory looking for DLLS that
 /// are potentially TTSEngines and caches the class Types for each
 /// engine.  The class Typs can be used to instantiate the engines
 /// </summary>
 /// <param name="dir"></param>
 private void loadEngineTypesIntoCache(String dir)
 {
     var walker = new DirectoryWalker(dir, "*.dll");
     walker.Walk(new OnFileFoundDelegate(onFileFound));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Recursively descends into the directory and loads all the 
 /// actuator types in each of the actuator DLLs
 /// </summary>
 /// <param name="dir">Directory to descend into/param>
 /// <param name="resursive">Descend recursively</param>
 private void loadActuatorTypesIntoCache(String dir, bool resursive = true)
 {
     var walker = new DirectoryWalker(dir, "*.dll");
     walker.Walk(new OnFileFoundDelegate(onFileFound));
 }
Ejemplo n.º 3
0
        public bool Init()
        {
            String userSkinsDir = FileUtils.GetUserSkinsDir();

            DirectoryWalker walker;
            if (Directory.Exists(userSkinsDir))
            {
                walker = new DirectoryWalker(userSkinsDir);
                walker.Walk(new OnDirectoryFoundDelegate(onDirFound));
            }

            walker = new DirectoryWalker(FileUtils.GetSkinsDir());
            walker.Walk(new OnDirectoryFoundDelegate(onDirFound));
            return true;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Walks the specified directory (rescursively)
 /// to look for files
 /// </summary>
 /// <param name="dir">Directory to walk</param>
 /// <param name="resursive">Recursively search?</param>
 private static void loadPanelConfigMap(String dir, bool resursive = true)
 {
     var walker = new DirectoryWalker(dir, "*.*");
     Log.Debug("Walking dir " + dir);
     walker.Walk(new OnFileFoundDelegate(onFileFound));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Walks the specified directory tree
 /// </summary>
 /// <param name="path">Directory path</param>
 private void loadAgentsFromDir(String path)
 {
     var walker = new DirectoryWalker(path, "*.dll");
     walker.Walk(new OnFileFoundDelegate(onAgentDllFound));
 }
Ejemplo n.º 6
0
Archivo: Fonts.cs Proyecto: glwu/acat
 /// <summary>
 /// Walks the specified directory and locates any fonts files in there
 /// and loads them
 /// </summary>
 /// <param name="directory">Root diretory to start from</param>
 /// <param name="wildCard">matching wild cards to look for</param>
 private static void loadFontsFromDir(String directory, String wildCard)
 {
     var walker = new DirectoryWalker(directory, wildCard);
     Log.Debug("Walking dir " + directory);
     walker.Walk(new OnFileFoundDelegate(onFileFound));
 }