src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignDocData.cs
/// <summary>
///     Close DocView's windows frame.
///     Prompt the user to save the document if the last diagram is closed and doc data is dirty.
/// </summary>
Close DocView's windows frame.
Prompt the user to save the document if the last diagram is closed and doc data is dirty.
Close DocView ' s windows frame . Prompt the user to save the document if the last diagram is closed and doc data is dirty .
[SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame.CloseFrame(System.UInt32)")]
        private void CloseDocViewWindow(MicrosoftDataEntityDesignDocView docView)
        {
            Debug.Assert(docView != null, "docView parameter is null");
            if (docView != null)
            {
                var isDirty = 0;
                IsDocDataDirty(out isDirty);
                if (DocViews.Count == 1
                    && isDirty == 1)
                {
                    docView.Frame.CloseFrame((uint)__FRAMECLOSE.FRAMECLOSE_PromptSave);
                }
                else
                {
                    docView.Frame.CloseFrame((uint)__FRAMECLOSE.FRAMECLOSE_NoSave);
                }
            }
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] private void CloseDocViewWindow ( MicrosoftDataEntityDesignDocView docView ) { Debug . Assert ( docView != null , " " ) ; if ( docView != null ) { var isDirty = 0 ; IsDocDataDirty ( out isDirty ) ; if ( DocViews . Count == 1 && isDirty == 1 ) { docView . Frame . CloseFrame ( ( uint ) __FRAMECLOSE . FRAMECLOSE_PromptSave ) ; } else { docView . Frame . CloseFrame ( ( uint ) __FRAMECLOSE . FRAMECLOSE_NoSave ) ; } } }
Close DocView's windows frame.
Close DocView ' s windows frame .
docView
MicrosoftDataEntityDesignDocView