Exemple #1
0
 protected override DslDiagrams::ShapeElement CreateChildShape(DslModeling::ModelElement element)
 {
     if (element is global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceDescription)
     {
         global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceDescriptionShape newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceDescriptionShape(this.Partition);
         if (newShape != null)
         {
             newShape.Size = newShape.DefaultSize;                                  // set default shape size
         }
         return(newShape);
     }
     if (element is global::Microsoft.Practices.ServiceFactory.HostDesigner.Endpoint)
     {
         global::Microsoft.Practices.ServiceFactory.HostDesigner.EndpointPortShape newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.EndpointPortShape(this.Partition);
         if (newShape != null)
         {
             newShape.Size = newShape.DefaultSize;                                  // set default shape size
         }
         return(newShape);
     }
     if (element is global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplication)
     {
         global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplicationShape newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplicationShape(this.Partition);
         if (newShape != null)
         {
             newShape.Size = newShape.DefaultSize;                                  // set default shape size
         }
         return(newShape);
     }
     if (element is global::Microsoft.Practices.ServiceFactory.HostDesigner.Proxy)
     {
         global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyPortShape newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyPortShape(this.Partition);
         if (newShape != null)
         {
             newShape.Size = newShape.DefaultSize;                                  // set default shape size
         }
         return(newShape);
     }
     if (element is global::Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplication)
     {
         global::Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplicationShape newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplicationShape(this.Partition);
         if (newShape != null)
         {
             newShape.Size = newShape.DefaultSize;                                  // set default shape size
         }
         return(newShape);
     }
     if (element is global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplicationHasServiceDescriptions)
     {
         global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceConnector newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceConnector(this.Partition);
         return(newShape);
     }
     if (element is global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyReferencesEndpoint)
     {
         global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyEndpointConnector newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyEndpointConnector(this.Partition);
         return(newShape);
     }
     return(base.CreateChildShape(element));
 }
Exemple #2
0
		protected override DslDiagrams::ShapeElement CreateChildShape(DslModeling::ModelElement element)
		{
			if(element is global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceDescription)
			{
				global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceDescriptionShape newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceDescriptionShape(this.Partition);
				if(newShape != null) newShape.Size = newShape.DefaultSize; // set default shape size
				return newShape;
			}
			if(element is global::Microsoft.Practices.ServiceFactory.HostDesigner.Endpoint)
			{
				global::Microsoft.Practices.ServiceFactory.HostDesigner.EndpointPortShape newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.EndpointPortShape(this.Partition);
				if(newShape != null) newShape.Size = newShape.DefaultSize; // set default shape size
				return newShape;
			}
			if(element is global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplication)
			{
				global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplicationShape newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplicationShape(this.Partition);
				if(newShape != null) newShape.Size = newShape.DefaultSize; // set default shape size
				return newShape;
			}
			if(element is global::Microsoft.Practices.ServiceFactory.HostDesigner.Proxy)
			{
				global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyPortShape newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyPortShape(this.Partition);
				if(newShape != null) newShape.Size = newShape.DefaultSize; // set default shape size
				return newShape;
			}
			if(element is global::Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplication)
			{
				global::Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplicationShape newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplicationShape(this.Partition);
				if(newShape != null) newShape.Size = newShape.DefaultSize; // set default shape size
				return newShape;
			}
			if(element is global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplicationHasServiceDescriptions)
			{
				global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceConnector newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceConnector(this.Partition);
				return newShape;
			}
			if(element is global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyReferencesEndpoint)
			{
				global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyEndpointConnector newShape = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyEndpointConnector(this.Partition);
				return newShape;
			}
			return base.CreateChildShape(element);
		}