public bool SetParameters(string fileName) { ParameterFiles parameterFiles = ParameterFiles.LoadFromXml(fileName); if (parameterFiles == null) { return(false); } object obj1 = (object)null; object obj2 = (object)Initialization.LoadFromXml(parameterFiles.Initialization); if (obj2 == null) { return(false); } this.Init = (Initialization)obj2; obj1 = (object)null; object obj3 = (object)Mutation.LoadFromXml(parameterFiles.Mutation); if (obj3 == null) { return(false); } this.Mutate = (Mutation)obj3; obj1 = (object)null; object obj4 = (object)Reproduction.LoadFromXml(parameterFiles.Reproduction); if (obj4 == null) { return(false); } this.Reprod = (Reproduction)obj4; obj1 = (object)null; object obj5 = (object)Saving.LoadFromXml(parameterFiles.Saving); if (obj5 == null) { return(false); } this.Saves = (Saving)obj5; obj1 = (object)null; object obj6 = (object)Speciation.LoadFromXml(parameterFiles.Speciation); if (obj6 == null) { return(false); } this.Speciate = (Speciation)obj6; Species.Compatible = this.Speciate; obj1 = (object)null; object obj7 = (object)Testing.LoadFromXml(parameterFiles.Testing); if (obj7 == null) { return(false); } this.Tests = (Testing)obj7; obj1 = (object)null; object obj8 = (object)HyperNEAT.LoadFromXml(parameterFiles.HyperNEAT); if (obj8 == null) { return(false); } Substrates.param = (HyperNEAT)obj8; return(true); }