public override void ReadConfiguration(XElement Configuration) { base.ReadConfiguration(Configuration); if (Update) { ShapeFile = new SafeFile() { FileName = Configuration.SafeParseString("ShapeFileName") }; ShapeFile.ColumnNames.Add(Configuration.SafeParseString("YearColumn")); ShapeFile.ColumnNames.Add(Configuration.SafeParseString("NameColumn")); Par1 = Configuration.SafeParseDouble("Par1")??_Par1; Par2 = Configuration.SafeParseDouble("Par2") ?? _Par2; foreach (var soileq in Configuration.Elements("Soil")) { WetLandsReducer wr = new WetLandsReducer(); wr.ReadConfiguration(soileq); SoilEquations.Add(wr.Name, wr); } } }
public override void ReadConfiguration(XElement Configuration) { base.ReadConfiguration(Configuration); if (Update) { ShapeFile = new SafeFile() { FileName = Configuration.SafeParseString("ShapeFileName") }; ShapeFile.ColumnNames.Add(Configuration.SafeParseString("YearColumn")); ShapeFile.ColumnNames.Add(Configuration.SafeParseString("NameColumn")); Par1 = Configuration.SafeParseDouble("Par1") ?? _Par1; Par2 = Configuration.SafeParseDouble("Par2") ?? _Par2; foreach (var soileq in Configuration.Elements("Soil")) { WetLandsReducer wr = new WetLandsReducer(); wr.ReadConfiguration(soileq); SoilEquations.Add(wr.Name, wr); } } }