public DATFile GetFileByName(string filename) { foreach (DATFile file in FileList) if (file.Path == filename) return file; return null; }