public void Export(FileStream fs) { this.ExportOK = false; recordControl.Write(fs); for (int i = 0; i < listFile.Count; i++) { RecordFile file = listFile[i]; if (file.Select) { exportFileIndex = i; file.Write(fs); exportedSize += file.Length; } } this.ExportOK = true; }