Ejemplo n.º 1
0
        public (int convertedToVersion, bool conversionHappened) ConvertXml(XElement element, int originalVersion)
        {
            //Always convert dimensions
            _formulaAndDimensionConverter.ConvertDimensionIn(element);

            if (element.Name == "PopulationSimulation")
            {
                convertPopulationSettings(element);
                convertParameterCache(element);
            }
            else if (element.Name == "RandomPopulation")
            {
                convertParameterCache(element);
            }
            else if (element.Name == CoreConstants.Serialization.SummaryChart)
            {
                //this is not taken care of by default in our generic logic
                convertAxisDimension(element);
            }

            return(ProjectVersions.V5_2_1, true);
        }
Ejemplo n.º 2
0
 private void perform521Conversion(DataRepository observedData, int originalVersion)
 {
     performConversion(originalVersion, ProjectVersions.V5_2_1, () => _formulaAndDimensionConverter.ConvertDimensionIn(observedData));
 }