src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/Shapes.cs
/// <summary>
/// Gets an array of CompartmentDescription for all compartments shown on this shape
/// (including compartments defined on base shapes).
/// </summary>
/// <returns></returns>
Gets an array of CompartmentDescription for all compartments shown on this shape
(including compartments defined on base shapes).
Gets an array of CompartmentDescription for all compartments shown on this shape ( including compartments defined on base shapes ) .
public override DslDiagrams::CompartmentDescription[] GetCompartmentDescriptions()
		{
			if(compartmentDescriptions == null)
			{
				DslDiagrams::CompartmentDescription[] baseCompartmentDescriptions = base.GetCompartmentDescriptions();
				int localCompartmentsOffset = 0;
				if(baseCompartmentDescriptions!=null)
				{
					localCompartmentsOffset = baseCompartmentDescriptions.Length;
				}
				compartmentDescriptions = new DslDiagrams::ElementListCompartmentDescription[2+localCompartmentsOffset];
				if(baseCompartmentDescriptions!=null)
				{
					baseCompartmentDescriptions.CopyTo(compartmentDescriptions, 0);	
				}
				{
					string title = global::Microsoft.Data.Entity.Design.EntityDesigner.MicrosoftDataEntityDesignDomainModel.SingletonResourceManager.GetString("EntityTypeShapePropertiesTitle");
					DslDiagrams::ElementListCompartmentDescription descriptor = new DslDiagrams::ElementListCompartmentDescription("Properties", title, 
						global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.Gainsboro), false, 
						global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.WhiteSmoke), false,
						null, null,
						false);
					compartmentDescriptions[localCompartmentsOffset+0] = descriptor;
				}
				{
					string title = global::Microsoft.Data.Entity.Design.EntityDesigner.MicrosoftDataEntityDesignDomainModel.SingletonResourceManager.GetString("EntityTypeShapeNavigationTitle");
					DslDiagrams::ElementListCompartmentDescription descriptor = new DslDiagrams::ElementListCompartmentDescription("Navigation", title, 
						global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.Gainsboro), false, 
						global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.WhiteSmoke), false,
						null, null,
						false);
					compartmentDescriptions[localCompartmentsOffset+1] = descriptor;
				}
			}
			return EntityTypeShape.compartmentDescriptions;
		}
public override DslDiagrams :: CompartmentDescription [ ] GetCompartmentDescriptions ( ) { if ( compartmentDescriptions == null ) { DslDiagrams :: CompartmentDescription [ ] baseCompartmentDescriptions = base . GetCompartmentDescriptions ( ) ; int localCompartmentsOffset = 0 ; if ( baseCompartmentDescriptions != null ) { localCompartmentsOffset = baseCompartmentDescriptions . Length ; } compartmentDescriptions = new DslDiagrams :: ElementListCompartmentDescription [ 2 + localCompartmentsOffset ] ; if ( baseCompartmentDescriptions != null ) { baseCompartmentDescriptions . CopyTo ( compartmentDescriptions , 0 ) ; } { string title = global :: Microsoft . Data . Entity . Design . EntityDesigner . MicrosoftDataEntityDesignDomainModel . SingletonResourceManager . GetString ( " " ) ; DslDiagrams :: ElementListCompartmentDescription descriptor = new DslDiagrams :: ElementListCompartmentDescription ( " " , title , global :: System . Drawing . Color . FromKnownColor ( global :: System . Drawing . KnownColor . Gainsboro ) , false , global :: System . Drawing . Color . FromKnownColor ( global :: System . Drawing . KnownColor . WhiteSmoke ) , false , null , null , false ) ; compartmentDescriptions [ localCompartmentsOffset + 0 ] = descriptor ; } { string title = global :: Microsoft . Data . Entity . Design . EntityDesigner . MicrosoftDataEntityDesignDomainModel . SingletonResourceManager . GetString ( " " ) ; DslDiagrams :: ElementListCompartmentDescription descriptor = new DslDiagrams :: ElementListCompartmentDescription ( " " , title , global :: System . Drawing . Color . FromKnownColor ( global :: System . Drawing . KnownColor . Gainsboro ) , false , global :: System . Drawing . Color . FromKnownColor ( global :: System . Drawing . KnownColor . WhiteSmoke ) , false , null , null , false ) ; compartmentDescriptions [ localCompartmentsOffset + 1 ] = descriptor ; } } return EntityTypeShape . compartmentDescriptions ; }
Gets an array of CompartmentDescription for all compartments shown on this shape
(including compartments defined on base shapes).
Gets an array of CompartmentDescription for all compartments shown on this shape ( including compartments defined on base shapes ) .
// Initialize the array of compartment descriptions if we haven't done so already.  // First we get any compartment descriptions in base shapes, and add on any compartments // that are defined on this shape. 
None