コード例 #1
0
ファイル: TTSEngines.cs プロジェクト: glwu/acat
 /// <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));
 }
コード例 #2
0
ファイル: Actuators.cs プロジェクト: nbsrujan/acat
 /// <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));
 }
コード例 #3
0
ファイル: ThemeManager.cs プロジェクト: glwu/acat
        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;
        }
コード例 #4
0
ファイル: PanelConfigMap.cs プロジェクト: nbsrujan/acat
 /// <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));
 }
コード例 #5
0
ファイル: AgentsCache.cs プロジェクト: shivam11/acat
 /// <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));
 }
コード例 #6
0
ファイル: Fonts.cs プロジェクト: 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));
 }