src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignCommandSet.cs
/// <summary>
///     Add or Show EFElement in the selected/Active diagram.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Add or Show EFElement in the selected/Active diagram.
Add or Show EFElement in the selected / Active diagram .
internal void OnMenuAddToDiagram(object sender, EventArgs e)
        {
            if (SelectedExplorerItem != null
                && CurrentMicrosoftDataEntityDesignDocView != null)
            {
                var diagram = CurrentMicrosoftDataEntityDesignDocView.Diagram as IViewDiagram;
                if (diagram != null)
                {
                    diagram.AddOrShowEFElementInDiagram(SelectedExplorerItem.ModelItem);
                }
            }
        }
internal void OnMenuAddToDiagram ( object sender , EventArgs e ) { if ( SelectedExplorerItem != null && CurrentMicrosoftDataEntityDesignDocView != null ) { var diagram = CurrentMicrosoftDataEntityDesignDocView . Diagram as IViewDiagram ; if ( diagram != null ) { diagram . AddOrShowEFElementInDiagram ( SelectedExplorerItem . ModelItem ) ; } } }
Add or Show EFElement in the selected/Active diagram.
Add or Show EFElement in the selected / Active diagram .
sender
object
None
e
EventArgs
None