Exemplo n.º 1
0
        public void RemoveFromDirectory(string dir, bool searchSubDirs)
        {
            // Create a new ScanDictory object
            SearchFiles searchFiles = new SearchFiles();

            // Add a FileEvent to the class
            searchFiles.FileEvent    += new SearchFiles.FileEventHandler(scanDirectory_FileEventRemove);
            searchFiles.searchPattern = "*.cpp";
            searchFiles.SearchDirectory(dir, searchSubDirs);
        }
        public void RemoveFromDirectory(string dir, bool searchSubDirs)
        {
            // Create a new ScanDictory object
            SearchFiles searchFiles = new SearchFiles();

            // Add a FileEvent to the class
            searchFiles.FileEvent += new SearchFiles.FileEventHandler(scanDirectory_FileEventRemove);
            searchFiles.searchPattern = "*.cpp";
            searchFiles.SearchDirectory(dir, searchSubDirs);
        }