src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignCommandSet.cs
/// <summary>
///     Create a new diagram with a default name.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Create a new diagram with a default name.
Create a new diagram with a default name .
internal void OnMenuAddNewDiagram(object sender, EventArgs e)
        {
            var diagram = CreateDiagramWithDefaultName();
            Debug.Assert(diagram != null, "Creating Diagram failed");
            if (diagram != null)
            {
                var frame = ExplorerFrame;
                if (frame != null)
                {
                    frame.NavigateToElementAndPutInRenameMode(diagram);
                    OnMenuOpenDiagram(sender, e);
                }
            }
        }
internal void OnMenuAddNewDiagram ( object sender , EventArgs e ) { var diagram = CreateDiagramWithDefaultName ( ) ; Debug . Assert ( diagram != null , " " ) ; if ( diagram != null ) { var frame = ExplorerFrame ; if ( frame != null ) { frame . NavigateToElementAndPutInRenameMode ( diagram ) ; OnMenuOpenDiagram ( sender , e ) ; } } }
Create a new diagram with a default name.
Create a new diagram with a default name .
// we want to navigate to newly created diagram node in mode browser and put the node to rename mode. // Open the newly created diagram.
sender
object
None
e
EventArgs
None