예제 #1
0
        /// <summary>
        /// Create a clone of this model system
        /// </summary>
        /// <param name="linkedParameters">The linked parameters</param>
        /// <returns>A cloned model system that can be used for editing.</returns>
        internal ModelSystemStructure CreateEditingClone(out List <ILinkedParameter> linkedParameters)
        {
            var ourClone = ModelSystemStructure.Clone();

            linkedParameters = LinkedParameters.Count > 0 ?
                               LinkedParameter.MapLinkedParameters(LinkedParameters, ourClone, ModelSystemStructure)
                : new List <ILinkedParameter>();
            return(ourClone as ModelSystemStructure);
        }
예제 #2
0
        /// <summary>
        /// Create a clone of this model system
        /// </summary>
        /// <param name="linkedParameters">The linked parameters</param>
        /// <returns>A cloned model system that can be used for editing.</returns>
        internal ModelSystemStructure CreateEditingClone(out List <ILinkedParameter> linkedParameters, out List <IRegionDisplay> regionDisplays)
        {
            var ourClone = ModelSystemStructure.Clone();

            linkedParameters = LinkedParameters.Count > 0 ?
                               LinkedParameter.MapLinkedParameters(LinkedParameters, ourClone, ModelSystemStructure)
                : new List <ILinkedParameter>();

            regionDisplays = RegionDisplay.MapRegionDisplays(this._regionDisplays, ourClone);
            return(ourClone as ModelSystemStructure);
        }