Load() public static method

public static Load ( XmlNode inputNode, TaskDataDocument taskDocument ) : List
inputNode System.Xml.XmlNode
taskDocument AgGateway.ADAPT.ISOv4Plugin.Models.TaskDataDocument
return List
Example #1
0
        private void LoadGuidanceAllocations(XmlNode inputNode, LoggedData task)
        {
            var allocations = GuidanceAllocationLoader.Load(inputNode, _taskDocument);

            _taskDocument.GuidanceAllocations.AddRange(allocations);

            task.GuidanceAllocationIds = allocations.Select(x => x.Id.ReferenceId).ToList();
        }
 public static List<GuidanceAllocation> Load(XmlNode inputNode, TaskDataDocument taskDocument)
 {
     var loader = new GuidanceAllocationLoader(taskDocument);
     return loader.Load(inputNode.SelectNodes("GAN"));
 }
Example #3
0
        public static List <GuidanceAllocation> Load(XmlNode inputNode, TaskDataDocument taskDocument)
        {
            var loader = new GuidanceAllocationLoader(taskDocument);

            return(loader.Load(inputNode.SelectNodes("GAN")));
        }