src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/SerializationHelper.cs
/// <summary>
/// Go through the diagram to find all shapes that are not connected to a model element. Some of them may be by design, the rest are out-of-sync shapes.
/// We want to make sure that all out-of-sync shapes are given a chance to fix themselves up, or post proper warning/error messages.
/// </summary>
/// <param name="diagram">The diagram of which the shapes are being checked.</param>
/// <param name="serializationResult">SerializationResult to store warning/error in case an orphaned shape choose to do so.</param>
Go through the diagram to find all shapes that are not connected to a model element. Some of them may be by design, the rest are out-of-sync shapes.
We want to make sure that all out-of-sync shapes are given a chance to fix themselves up, or post proper warning/error messages.
Go through the diagram to find all shapes that are not connected to a model element . Some of them may be by design the rest are out - of - sync shapes . We want to make sure that all out - of - sync shapes are given a chance to fix themselves up or post proper warning / error messages .
protected virtual void CheckForOrphanedShapes(DslDiagrams::Diagram diagram, DslModeling::SerializationResult serializationResult)
		{
			global::System.Collections.Generic.List<DslDiagrams::ShapeElement> orphanedShapes = new global::System.Collections.Generic.List<DslDiagrams::ShapeElement>();
			diagram.IterateShapes(new OrphanedShapeIterator(orphanedShapes, diagram));
			foreach (DslDiagrams::ShapeElement orphanedShape in orphanedShapes)
			{
				if (serializationResult.Failed)
					break;
				orphanedShape.OnOrphaned(serializationResult);
			}
		}
protected virtual void CheckForOrphanedShapes ( DslDiagrams :: Diagram diagram , DslModeling :: SerializationResult serializationResult ) { global :: System . Collections . Generic . List < DslDiagrams :: ShapeElement > orphanedShapes = new global :: System . Collections . Generic . List < DslDiagrams :: ShapeElement > ( ) ; diagram . IterateShapes ( new OrphanedShapeIterator ( orphanedShapes , diagram ) ) ; foreach ( DslDiagrams :: ShapeElement orphanedShape in orphanedShapes ) { if ( serializationResult . Failed ) break ; orphanedShape . OnOrphaned ( serializationResult ) ; } }
Go through the diagram to find all shapes that are not connected to a model element.
Go through the diagram to find all shapes that are not connected to a model element .
diagram
DslDiagrams::Diagram
The diagram of which the shapes are being checked.
The diagram of which the shapes are being checked .
serializationResult
DslModeling::SerializationResult
SerializationResult to store warning/error in case an orphaned shape choose to do so.
SerializationResult to store warning / error in case an orphaned shape choose to do so .