private void LoadFiles() { DirectoryInfo d = new DirectoryInfo(Directory); var files = d.GetFiles("*.*").ToList(); files.ForEach(file => { var content = File.ReadAllBytes(file.FullName); FileActions.Add(new ModifyFileAction(file.Name, content)); }); }