예제 #1
0
 internal void AddCommu(string commuName, IEnumerable <CommuLine> lines)
 {
     if (!HasFile(commuName) && lines.Any(line => !string.IsNullOrWhiteSpace(line.message)))
     {
         ZipArchiveEntry entry = zipArchive.CreateEntry(commuName);
         using Stream stream = entry.Open();
         CommuFromXlsx.WriteBin(stream, lines);
         _entries.Add(new PatchZipEntry(entry));
     }
 }
예제 #2
0
 public async Task AddCommus(string xlsxName, IProgress <ProgressData> progress1 = null, IProgress <ProgressData> progress2 = null)
 {
     using CommuFromXlsx commuFromXlsx = new CommuFromXlsx(xlsxName);
     await commuFromXlsx.GetAndWriteAllCommus(this, progress1, progress2);
 }