src/Misc/EFTools/EntityDesignEntityDesigner/CustomCode/Diagram/EntityDesignerDiagram.cs
/// <summary>
///     Event invoked when user clicks on a link in the diagram watermark
///     We show the appropriate tool window
/// </summary>
/// <param name="sender">LinkLabel</param>
/// <param name="e">LinkLabelLinkClickedEventArgs</param>
Event invoked when user clicks on a link in the diagram watermark
We show the appropriate tool window
Event invoked when user clicks on a link in the diagram watermark We show the appropriate tool window
private void diagramWatermark_ToolboxLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var linkLabel = sender as LinkLabel;
            if (linkLabel != null)
            {
                if (e.Link.LinkData is Guid)
                {
                    var toolWindow = (Guid)e.Link.LinkData;
                    if (toolWindow != Guid.Empty)
                    {
                        var uiService = Services.ServiceProvider.GetService(typeof(IUIService)) as IUIService;
                        if (uiService != null)
                        {
                            uiService.ShowToolWindow(toolWindow);
                        }
                    }
                }
            }
        }
private void diagramWatermark_ToolboxLinkClicked ( object sender , LinkLabelLinkClickedEventArgs e ) { var linkLabel = sender as LinkLabel ; if ( linkLabel != null ) { if ( e . Link . LinkData is Guid ) { var toolWindow = ( Guid ) e . Link . LinkData ; if ( toolWindow != Guid . Empty ) { var uiService = Services . ServiceProvider . GetService ( typeof ( IUIService ) ) as IUIService ; if ( uiService != null ) { uiService . ShowToolWindow ( toolWindow ) ; } } } } }
Event invoked when user clicks on a link in the diagram watermark
We show the appropriate tool window
Event invoked when user clicks on a link in the diagram watermark We show the appropriate tool window
sender
object
None
e
LinkLabelLinkClickedEventArgs
None