src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/ToolboxHelper.cs
/// <summary>
/// Returns instance of ModelingToolboxItem based on specified name.
/// This method must be called from within a Transaction. Failure to do so will result in an exception
/// </summary>
/// <param name="itemId">unique name of desired ToolboxItem</param>
/// <param name="store">Store to perform the operation against</param>
/// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
Returns instance of ModelingToolboxItem based on specified name.
This method must be called from within a Transaction. Failure to do so will result in an exception
Returns instance of ModelingToolboxItem based on specified name . This method must be called from within a Transaction . Failure to do so will result in an exception
public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
		{
			DslDesign::ModelingToolboxItem result = null;
			if (string.IsNullOrEmpty(itemId))
			{
				return null;
			}
			if (store == null)
			{
				return null;
			}
			global::System.Resources.ResourceManager resourceManager = global::Microsoft.Data.Entity.Design.EntityDesigner.MicrosoftDataEntityDesignDomainModel.SingletonResourceManager;
			global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
			switch(itemId)
			{
				case "Microsoft.Data.Entity.Design.Package.EntityToolToolboxItem":
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Data.Entity.Design.Package.EntityToolToolboxItem", 
						1, 
						resourceManager.GetString("EntityToolToolboxItem", resourceCulture), 
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EntityToolToolboxBitmap", resourceCulture)), 
						"Microsoft.Data.Entity.Design.Package.Entity FrameworkToolboxTab", 
						resourceManager.GetString("Entity FrameworkToolboxTab", resourceCulture), 
						string.Empty, 
						resourceManager.GetString("EntityToolToolboxTooltip", resourceCulture), 
						CreateElementToolPrototype(store, global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityType.DomainClassId), 
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { 
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require) 
						});
					break;
				case "Microsoft.Data.Entity.Design.Package.AssociationToolToolboxItem":
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Data.Entity.Design.Package.AssociationToolToolboxItem", 
						2, 
						resourceManager.GetString("AssociationToolToolboxItem", resourceCulture), 
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AssociationToolToolboxBitmap", resourceCulture)), 				
						"Microsoft.Data.Entity.Design.Package.Entity FrameworkToolboxTab", 
						resourceManager.GetString("Entity FrameworkToolboxTab", resourceCulture), 
                        string.Empty, 
                        resourceManager.GetString("AssociationToolToolboxTooltip", resourceCulture), 
						null, 
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require), 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(AssociationToolFilterString)
						});
					break;
				case "Microsoft.Data.Entity.Design.Package.InheritanceToolToolboxItem":
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Data.Entity.Design.Package.InheritanceToolToolboxItem", 
						3, 
						resourceManager.GetString("InheritanceToolToolboxItem", resourceCulture), 
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("InheritanceToolToolboxBitmap", resourceCulture)), 				
						"Microsoft.Data.Entity.Design.Package.Entity FrameworkToolboxTab", 
						resourceManager.GetString("Entity FrameworkToolboxTab", resourceCulture), 
                        string.Empty, 
                        resourceManager.GetString("InheritanceToolToolboxTooltip", resourceCulture), 
						null, 
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require), 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(InheritanceToolFilterString)
						});
					break;
				default:
					break;
			} 
			return result;
		}
public virtual DslDesign :: ModelingToolboxItem GetToolboxItem ( string itemId , DslModeling :: Store store ) { DslDesign :: ModelingToolboxItem result = null ; if ( string . IsNullOrEmpty ( itemId ) ) { return null ; } if ( store == null ) { return null ; } global :: System . Resources . ResourceManager resourceManager = global :: Microsoft . Data . Entity . Design . EntityDesigner . MicrosoftDataEntityDesignDomainModel . SingletonResourceManager ; global :: System . Globalization . CultureInfo resourceCulture = global :: System . Globalization . CultureInfo . CurrentUICulture ; switch ( itemId ) { case " " : result = new DslDesign :: ModelingToolboxItem ( " " , 1 , resourceManager . GetString ( " " , resourceCulture ) , ( global :: System . Drawing . Bitmap ) DslDiagrams :: ImageHelper . GetImage ( resourceManager . GetObject ( " " , resourceCulture ) ) , " " , resourceManager . GetString ( " " , resourceCulture ) , string . Empty , resourceManager . GetString ( " " , resourceCulture ) , CreateElementToolPrototype ( store , global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityType . DomainClassId ) , new global :: System . ComponentModel . ToolboxItemFilterAttribute [ ] { new global :: System . ComponentModel . ToolboxItemFilterAttribute ( ToolboxFilterString , global :: System . ComponentModel . ToolboxItemFilterType . Require ) } ) ; break ; case " " : result = new DslDesign :: ModelingToolboxItem ( " " , 2 , resourceManager . GetString ( " " , resourceCulture ) , ( global :: System . Drawing . Bitmap ) DslDiagrams :: ImageHelper . GetImage ( resourceManager . GetObject ( " " , resourceCulture ) ) , " " , resourceManager . GetString ( " " , resourceCulture ) , string . Empty , resourceManager . GetString ( " " , resourceCulture ) , null , new global :: System . ComponentModel . ToolboxItemFilterAttribute [ ] { new global :: System . ComponentModel . ToolboxItemFilterAttribute ( ToolboxFilterString , global :: System . ComponentModel . ToolboxItemFilterType . Require ) , new global :: System . ComponentModel . ToolboxItemFilterAttribute ( AssociationToolFilterString ) } ) ; break ; case " " : result = new DslDesign :: ModelingToolboxItem ( " " , 3 , resourceManager . GetString ( " " , resourceCulture ) , ( global :: System . Drawing . Bitmap ) DslDiagrams :: ImageHelper . GetImage ( resourceManager . GetObject ( " " , resourceCulture ) ) , " " , resourceManager . GetString ( " " , resourceCulture ) , string . Empty , resourceManager . GetString ( " " , resourceCulture ) , null , new global :: System . ComponentModel . ToolboxItemFilterAttribute [ ] { new global :: System . ComponentModel . ToolboxItemFilterAttribute ( ToolboxFilterString , global :: System . ComponentModel . ToolboxItemFilterType . Require ) , new global :: System . ComponentModel . ToolboxItemFilterAttribute ( InheritanceToolFilterString ) } ) ; break ; default : break ; } return result ; }
Returns instance of ModelingToolboxItem based on specified name.
Returns instance of ModelingToolboxItem based on specified name .
// Add EntityTool shape tool. // Unique identifier (non-localized) for the toolbox item. // Position relative to other items in the same toolbox tab. // Localized display name for the item. // Image displayed next to the toolbox item. // Unique identifier (non-localized) for the toolbox item tab. // Localized display name for the toolbox tab. // no F1 help keyword for the toolbox item. // Localized tooltip text for the toolbox item. // ElementGroupPrototype (data object) representing model element on the toolbox. // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item. // Add AssociationTool connector tool. // Unique identifier (non-localized) for the toolbox item. // Position relative to other items in the same toolbox tab. // Localized display name for the item. // Image displayed next to the toolbox item.				 // Unique identifier (non-localized) for the toolbox item tab. // Localized display name for the toolbox tab. // no F1 help keyword for the toolbox item. // Localized tooltip text for the toolbox item. // Connector toolbox items do not have an underlying data object. // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item. // Add InheritanceTool connector tool. // Unique identifier (non-localized) for the toolbox item. // Position relative to other items in the same toolbox tab. // Localized display name for the item. // Image displayed next to the toolbox item.				 // Unique identifier (non-localized) for the toolbox item tab. // Localized display name for the toolbox tab. // no F1 help keyword for the toolbox item. // Localized tooltip text for the toolbox item. // Connector toolbox items do not have an underlying data object. // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item. // end switch
An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise
An instance of ModelingToolboxItem if the itemId can be resolved null otherwise
itemId
string
unique name of desired ToolboxItem
unique name of desired ToolboxItem
store
DslModeling::Store
Store to perform the operation against
Store to perform the operation against