Пример #1
0
 protected override DslDiagrams::ShapeElement CreateChildShape(DslModeling::ModelElement element)
 {
     if (element is global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.EntityType)
     {
         global::ORMSolutions.ORMArchitect.Views.BarkerERView.BarkerEntityShape newShape = new global::ORMSolutions.ORMArchitect.Views.BarkerERView.BarkerEntityShape(this.Partition);
         if (newShape != null)
         {
             newShape.Size = newShape.DefaultSize;                                  // set default shape size
         }
         return(newShape);
     }
     return(base.CreateChildShape(element));
 }
Пример #2
0
		protected override DslDiagrams::ShapeElement CreateChildShape(DslModeling::ModelElement element)
		{
			if(element is global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.EntityType)
			{
				global::ORMSolutions.ORMArchitect.Views.BarkerERView.BarkerEntityShape newShape = new global::ORMSolutions.ORMArchitect.Views.BarkerERView.BarkerEntityShape(this.Partition);
				if(newShape != null) newShape.Size = newShape.DefaultSize; // set default shape size
				return newShape;
			}
			return base.CreateChildShape(element);
		}