Beispiel #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);
        }
Beispiel #2
0
 public static GridDescriptor Load(XmlNode inputNode, Dictionary<int, TreatmentZone> treatmentZones, string baseFolder)
 {
     var loader = new GridLoader(baseFolder, treatmentZones);
     return loader.Load(inputNode);
 }
Beispiel #3
0
        public static GridDescriptor Load(XmlNode inputNode, Dictionary <int, TreatmentZone> treatmentZones, string baseFolder)
        {
            var loader = new GridLoader(baseFolder, treatmentZones);

            return(loader.Load(inputNode));
        }