private RegFileWrapper NewFileWrapper(RegFileInfo file, RegFileType type) { RegFileWrapper wrapper = null; if ((file != null) && (file.VerFlag != null)) { wrapper = new RegFileWrapper(file) { FileType = type }; foreach (VersionInfo info in this.versionList) { if ((info != null) && (info.Sign == file.VerFlag)) { wrapper.DisplayName = info.Name; wrapper.VersionDesc = info.Description; wrapper.ExportFlag = info.ExportFlag; } } } return(wrapper); }
public RegFileWrapper(RegFileInfo fileInfo) { this.regFile = fileInfo; }