Exemplo n.º 1
0
 protected void PopulateDirectoryList()
 {
     DirectoryList.Clear();
     foreach (var item in Directory.GetFiles(FolderPath, "*", SearchOption.AllDirectories).ToList())
     {
         AddToDirectoryList(item);
     }
 }
Exemplo n.º 2
0
 private void UpdateDirectoryFiles()
 {
     string[] files = System.IO.Directory.GetFiles(this.CurrentDirectory);
     DirectoryList.Clear();
     foreach (string fullFile in files)
     {
         string[] split = fullFile.Split('\\');
         string   file  = split[split.Length - 1];
         string   ext   = Path.GetExtension(file);
         if (ext.ToLower() == ".dll")
         {
             DirectoryList.Add(new FileItem(file, this.CurrentDirectory + "\\" + file));
         }
     }
 }