src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignCommandSet.cs
/// <summary>
///     Status handler for: "Add Function Import"
///     Visible only when user right-clicks on empty area of designer or EntityTypeShape
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Status handler for: "Add Function Import"
Visible only when user right-clicks on empty area of designer or EntityTypeShape
Status handler for : " Add Function Import " Visible only when user right - clicks on empty area of designer or EntityTypeShape
internal void OnStatusAddFunctionImport(object sender, EventArgs e)
        {
            var cmd = sender as MenuCommand;
            Debug.Assert(cmd != null, "could not cast sender as a MenuCommand");
            if (cmd != null)
            {
                var diagram = GetDiagram();
                if (diagram != null)
                {
                    cmd.Visible = IsSingleSelection() && (IsOurDiagramSelected() || SelectedEntityTypeShape != null);
                    cmd.Enabled = true;
                }
                else
                {
                    cmd.Visible = cmd.Enabled = false;
                }
            }
        }
internal void OnStatusAddFunctionImport ( object sender , EventArgs e ) { var cmd = sender as MenuCommand ; Debug . Assert ( cmd != null , " " ) ; if ( cmd != null ) { var diagram = GetDiagram ( ) ; if ( diagram != null ) { cmd . Visible = IsSingleSelection ( ) && ( IsOurDiagramSelected ( ) || SelectedEntityTypeShape != null ) ; cmd . Enabled = true ; } else { cmd . Visible = cmd . Enabled = false ; } } }
Status handler for: "Add Function Import"
Visible only when user right-clicks on empty area of designer or EntityTypeShape
Status handler for : " Add Function Import " Visible only when user right - clicks on empty area of designer or EntityTypeShape
sender
object
None
e
EventArgs
None