bool ExportPeople(Lib.XmlExporter xml, Data.IInvoice pool, int count) { if (!xml.OK) { return(false); } xml.Writer.WriteStartElement("PERS_LIST"); xml.Writer.WriteStartElement("ZGLV"); xml.Writer.WriteElementString("VERSION", VERSION_PEOPLE); xml.Writer.WriteElementString("DATA", DateTime.Today.AsXml()); xml.Writer.WriteElementString("FILENAME", invoiceFilename.PersonFile); xml.Writer.WriteElementString("FILENAME1", invoiceFilename.InvoiceFile); xml.Writer.WriteEndElement(); Lib.Progress progress = new Progress("Пациенты", count); foreach (Person p in pool.LoadPeople(invoiceFilename.Section, invoiceFilename.Subsection)) { p.Write(xml, pool, invoiceFilename.Section); progress.Step(); #if DEBUG if (--count <= 0) { break; } #endif } progress.Close(); xml.Writer.WriteEndElement(); return(true); }