public void ScanContent() { available_content = (Content)0; if (file_source == null) { file_source = new Directory(label.install_path); } if (file_source.Exists()) { List <FileSystemItem> list = new List <FileSystemItem>(); file_source.GetTopLevelItems(list); foreach (FileSystemItem item in list) { FileSystemItem current = item; if (current.type == FileSystemItem.ItemType.Directory) { AddDirectory(current.name.ToLower()); } else { AddFile(current.name.ToLower()); } } } }