public void Add(string actualFilename, string localFilename, SourceFileForm form) { OpenFileStruct file = new OpenFileStruct(); file.localFilename = localFilename; file.remoteFilename = actualFilename; file.form = form; _openFiles.Add(file.localFilename, file); }