src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignCommandSet.cs
/// <summary>
///     Menu item to import related entity type to an entityType.
///     This menu item is only shown if a single entity-type is selected in the diagram.
/// </summary>
Menu item to import related entity type to an entityType.
This menu item is only shown if a single entity-type is selected in the diagram.
Menu item to import related entity type to an entityType . This menu item is only shown if a single entity - type is selected in the diagram .
internal void OnStatusIncludeRelatedEntityType(object sender, EventArgs e)
        {
            var cmd = sender as MenuCommand;
            if (null != cmd)
            {
                cmd.Enabled = cmd.Visible = false;
                var diagram = GetDiagram();
                if (IsSingleSelection()
                    && diagram != null)
                {
                    cmd.Enabled = cmd.Visible = AreAllSelectedItemsTypeof<EntityTypeShape>();
                }
            }
        }
internal void OnStatusIncludeRelatedEntityType ( object sender , EventArgs e ) { var cmd = sender as MenuCommand ; if ( null != cmd ) { cmd . Enabled = cmd . Visible = false ; var diagram = GetDiagram ( ) ; if ( IsSingleSelection ( ) && diagram != null ) { cmd . Enabled = cmd . Visible = AreAllSelectedItemsTypeof < EntityTypeShape > ( ) ; } } }
Menu item to import related entity type to an entityType.
Menu item to import related entity type to an entityType .
// We only show the menu item if entity diagram is active (GetDiagram() will return non null value).
sender
object
e
EventArgs