Load() private method

private Load ( XmlNode inputNode ) : GridDescriptor
inputNode System.Xml.XmlNode
return GridDescriptor
Exemplo n.º 1
0
        private void LoadGrid(XmlNode inputNode, RasterGridPrescription prescription)
        {
            var treatmentZones = TreatmentZoneLoader.Load(inputNode, _taskDocument);
            var gridDescriptor = GridLoader.Load(inputNode, treatmentZones, _taskDocument.BaseFolder);

            if (gridDescriptor == null)
            {
                return;
            }

            LoadDefinition(gridDescriptor, prescription);
            LoadRates(inputNode, gridDescriptor, treatmentZones, prescription);
        }
Exemplo n.º 2
0
 public static GridDescriptor Load(XmlNode inputNode, Dictionary<int, TreatmentZone> treatmentZones, string baseFolder)
 {
     var loader = new GridLoader(baseFolder, treatmentZones);
     return loader.Load(inputNode);
 }
Exemplo n.º 3
0
        public static GridDescriptor Load(XmlNode inputNode, Dictionary <int, TreatmentZone> treatmentZones, string baseFolder)
        {
            var loader = new GridLoader(baseFolder, treatmentZones);

            return(loader.Load(inputNode));
        }