//**************************************************************************************************** // //**************************************************************************************************** private void AddFiles() { if (FSFilter.HideFiles(displayFilter)) { return; } if (listFiles == false) { listFiles = true; DirectoryInfo dirInfo = new DirectoryInfo(path); FileInfo[] fileInfos = (displayFilter != null) ? dirInfo.GetFiles(displayFilter.pattern, SearchOption.TopDirectoryOnly) : dirInfo.GetFiles(); for (int file = 0; file < fileInfos.Length; ++file) { AddEntry(this, fileInfos[file], displayFilter); } } }