src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignCommandSet.cs
/// <summary>
///     Status method to decide whether Add Scalar Property menu should be visible
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Status method to decide whether Add Scalar Property menu should be visible
Status method to decide whether Add Scalar Property menu should be visible
internal void OnStatusAddProperty(object sender, EventArgs e)
        {
            var cmd = sender as DynamicStatusMenuCommand;
            Debug.Assert(cmd != null, "could not cast sender as a DynamicStatusMenuCommand");
            if (cmd != null)
            {
                cmd.Visible = cmd.Enabled = IsSingleSelection() && (GetSelectedCompartment(true ) != null);
            }
        }
internal void OnStatusAddProperty ( object sender , EventArgs e ) { var cmd = sender as DynamicStatusMenuCommand ; Debug . Assert ( cmd != null , " " ) ; if ( cmd != null ) { cmd . Visible = cmd . Enabled = IsSingleSelection ( ) && ( GetSelectedCompartment ( true ) != null ) ; } }
Status method to decide whether Add Scalar Property menu should be visible
Status method to decide whether Add Scalar Property menu should be visible
/* Properties Compartment */
sender
object
None
e
EventArgs
None