src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignCommandSet.cs
/// <summary>
///     Invoke handler for "Collapse" menu item.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Invoke handler for "Collapse" menu item.
Invoke handler for " Collapse " menu item .
internal void OnMenuCollapseEntityTypeShape(object sender, EventArgs e)
        {
            var diagram = GetDiagram();
            Debug.Assert(
                diagram != null && IsSingleSelection() && (SelectedEntityTypeShape != null && SelectedEntityTypeShape.IsExpanded),
                "could not find diagram");
            if (diagram != null
                && SelectedEntityTypeShape != null)
            {
                diagram.CollapseEntityTypeShape(SelectedEntityTypeShape);
            }
        }
internal void OnMenuCollapseEntityTypeShape ( object sender , EventArgs e ) { var diagram = GetDiagram ( ) ; Debug . Assert ( diagram != null && IsSingleSelection ( ) && ( SelectedEntityTypeShape != null && SelectedEntityTypeShape . IsExpanded ) , " " ) ; if ( diagram != null && SelectedEntityTypeShape != null ) { diagram . CollapseEntityTypeShape ( SelectedEntityTypeShape ) ; } }
Invoke handler for "Collapse" menu item.
Invoke handler for " Collapse " menu item .
sender
object
None
e
EventArgs
None