AgGateway.ADAPT.ISOv4Plugin.Writers.CommentWriter.WriteComments C# (CSharp) Method

WriteComments() private method

private WriteComments ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
return void
        private void WriteComments(XmlWriter writer)
        {
            foreach (var workOrder in TaskWriter.DataModel.Documents.WorkOrders)
            {
                if(workOrder.Notes == null)
                    continue;
                foreach (var note in workOrder.Notes)
                {
                    WriteComments(writer, note);
                }
            }
        }

Same methods

CommentWriter::WriteComments ( XmlWriter writer, AgGateway.ADAPT.ApplicationDataModel.Notes.Note note ) : void

Usage Example

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

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