AgGateway.ADAPT.ISOv4Plugin.Writers.CropWriter.WriteCrops C# (CSharp) Method

WriteCrops() private method

private WriteCrops ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
return void
        private void WriteCrops(XmlWriter writer)
        {
            foreach (var crop in TaskWriter.DataModel.Catalog.Crops)
            {
                var cropId = WriteCrop(writer, crop);
                TaskWriter.Crops[crop.Id.ReferenceId] = cropId;
            }
        }

Usage Example

Example #1
0
        public static void Write(TaskDocumentWriter taskWriter)
        {
            if (taskWriter.DataModel.Catalog.Crops == null ||
                taskWriter.DataModel.Catalog.Crops.Count == 0)
                return;

            var writer = new CropWriter(taskWriter);
            writer.WriteCrops(taskWriter.RootWriter);
        }
All Usage Examples Of AgGateway.ADAPT.ISOv4Plugin.Writers.CropWriter::WriteCrops