src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignDocData.cs
/// <summary>
///     Close window for diagram with the specific id.
/// </summary>
/// <param name="diagramMoniker"></param>
Close window for diagram with the specific id.
Close window for diagram with the specific id .
public void CloseDiagram(string diagramMoniker)
        {
            foreach (var docView in DocViews)
            {
                var dataEntityDesignDocView = docView as MicrosoftDataEntityDesignDocView;
                Debug.Assert(dataEntityDesignDocView != null, "DocView is null or not typeof MicrosoftDataEntityDesignDocView");
                if (dataEntityDesignDocView != null
                    && dataEntityDesignDocView.Diagram.DiagramId == diagramMoniker)
                {
                    CloseDocViewWindow(dataEntityDesignDocView);
                    return;
                }
            }
        }
public void CloseDiagram ( string diagramMoniker ) { foreach ( var docView in DocViews ) { var dataEntityDesignDocView = docView as MicrosoftDataEntityDesignDocView ; Debug . Assert ( dataEntityDesignDocView != null , " " ) ; if ( dataEntityDesignDocView != null && dataEntityDesignDocView . Diagram . DiagramId == diagramMoniker ) { CloseDocViewWindow ( dataEntityDesignDocView ) ; return ; } } }
Close window for diagram with the specific id.
Close window for diagram with the specific id .
diagramMoniker
string
None