src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignCommandSet.cs
/// <summary>
///     Status handler for menu item to expand an entity shape.
///     Visible when the selected entity shape is collapsed.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Status handler for menu item to expand an entity shape.
Visible when the selected entity shape is collapsed.
Status handler for menu item to expand an entity shape . Visible when the selected entity shape is collapsed .
internal void OnStatusExpandEntityTypeShape(object sender, EventArgs e)
        {
            var cmd = sender as MenuCommand;
            if (cmd != null)
            {
                var diagram = GetDiagram();
                if (diagram != null)
                {
                    cmd.Visible = IsSingleSelection() && (SelectedEntityTypeShape != null && !SelectedEntityTypeShape.IsExpanded);
                    cmd.Enabled = true;
                }
                else
                {
                    cmd.Visible = cmd.Enabled = false;
                }
            }
        }
internal void OnStatusExpandEntityTypeShape ( object sender , EventArgs e ) { var cmd = sender as MenuCommand ; if ( cmd != null ) { var diagram = GetDiagram ( ) ; if ( diagram != null ) { cmd . Visible = IsSingleSelection ( ) && ( SelectedEntityTypeShape != null && ! SelectedEntityTypeShape . IsExpanded ) ; cmd . Enabled = true ; } else { cmd . Visible = cmd . Enabled = false ; } } }
Status handler for menu item to expand an entity shape.
Status handler for menu item to expand an entity shape .
sender
object
None
e
EventArgs
None