src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignCommandSet.cs
/// <summary>
///     The menu item that allows the user to move entity-type-shapes from a diagram to another diagram.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
The menu item that allows the user to move entity-type-shapes from a diagram to another diagram.
The menu item that allows the user to move entity - type - shapes from a diagram to another diagram .
internal void OnStatusMoveToNewDiagram(object sender, EventArgs e)
        {
            var cmd = sender as MenuCommand;
            if (null != cmd)
            {
                cmd.Enabled = cmd.Visible = false;
                var diagram = GetDiagram();
                if (diagram != null)
                {
                    cmd.Enabled = cmd.Visible = AreAllSelectedItemsTypeof<EntityTypeShape>();
                }
            }
        }
internal void OnStatusMoveToNewDiagram ( object sender , EventArgs e ) { var cmd = sender as MenuCommand ; if ( null != cmd ) { cmd . Enabled = cmd . Visible = false ; var diagram = GetDiagram ( ) ; if ( diagram != null ) { cmd . Enabled = cmd . Visible = AreAllSelectedItemsTypeof < EntityTypeShape > ( ) ; } } }
The menu item that allows the user to move entity-type-shapes from a diagram to another diagram.
The menu item that allows the user to move entity - type - shapes from a diagram to another diagram .
// We only show the menu item if entity diagram is active (GetDiagram() will return non null value).
sender
object
None
e
EventArgs
None