src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignCommandSet.cs
/// <summary>
///     Invoke handler: "Export Diagram as Image"
///     Exports the diagram as an image
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Invoke handler: "Export Diagram as Image"
Exports the diagram as an image
Invoke handler : " Export Diagram as Image " Exports the diagram as an image
internal void OnMenuExportDiagramAsImage(object sender, EventArgs e)
        {
            var diagram = GetDiagram();
            Debug.Assert(diagram != null, "could not find diagram");
            if (diagram != null)
            {
                if (diagram.NestedChildShapes == null
                    || diagram.NestedChildShapes.Count == 0)
                {
                    VsUtils.ShowErrorDialog(String.Format(CultureInfo.CurrentCulture, Resources.Error_EmptyDiagram, diagram.Title));
                    return;
                }
                ModelUtils.ExportAsImage(diagram);
            }
        }
internal void OnMenuExportDiagramAsImage ( object sender , EventArgs e ) { var diagram = GetDiagram ( ) ; Debug . Assert ( diagram != null , " " ) ; if ( diagram != null ) { if ( diagram . NestedChildShapes == null || diagram . NestedChildShapes . Count == 0 ) { VsUtils . ShowErrorDialog ( String . Format ( CultureInfo . CurrentCulture , Resources . Error_EmptyDiagram , diagram . Title ) ) ; return ; } ModelUtils . ExportAsImage ( diagram ) ; } }
Invoke handler: "Export Diagram as Image"
Exports the diagram as an image
Invoke handler : " Export Diagram as Image " Exports the diagram as an image
sender
object
None
e
EventArgs
None