src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignCommandSet.cs
/// <summary>
///     Common function to enable menu command if diagram is selected
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Common function to enable menu command if diagram is selected
Common function to enable menu command if diagram is selected
internal void StatusEnableOnDiagramSelected(object sender, EventArgs e)
        {
            var cmd = sender as MenuCommand;
            Debug.Assert(cmd != null, "could not cast sender as a MenuCommand");
            if (cmd != null)
            {
                cmd.Enabled = cmd.Visible = IsOurDiagramSelected();
            }
        }
internal void StatusEnableOnDiagramSelected ( object sender , EventArgs e ) { var cmd = sender as MenuCommand ; Debug . Assert ( cmd != null , " " ) ; if ( cmd != null ) { cmd . Enabled = cmd . Visible = IsOurDiagramSelected ( ) ; } }
Common function to enable menu command if diagram is selected
Common function to enable menu command if diagram is selected
sender
object
None
e
EventArgs
None