src/Misc/EFTools/EntityDesignEntityDesigner/CustomCode/Diagram/EntityDesignerDiagram.cs
/// <summary>
///     Unsubscribe to the shape selection changed event when view is about to be disposed.
/// </summary>
Unsubscribe to the shape selection changed event when view is about to be disposed.
Unsubscribe to the shape selection changed event when view is about to be disposed .
protected override void OnDisassociated(DiagramAssociationEventArgs e)
        {
            if (e.DiagramView != null
                && e.DiagramView.Selection != null)
            {
                e.DiagramView.Selection.ShapeSelectionChanged -= diagramView_OnShapeSelectionChanged;
            }
            base.OnDisassociated(e);
        }
protected override void OnDisassociated ( DiagramAssociationEventArgs e ) { if ( e . DiagramView != null && e . DiagramView . Selection != null ) { e . DiagramView . Selection . ShapeSelectionChanged -= diagramView_OnShapeSelectionChanged ; } base . OnDisassociated ( e ) ; }
Unsubscribe to the shape selection changed event when view is about to be disposed.
Unsubscribe to the shape selection changed event when view is about to be disposed .
e
DiagramAssociationEventArgs