src/Misc/EFTools/EntityDesignEntityDesigner/CustomCode/Diagram/EntityDesignerDiagram.cs
/// <summary>
///     Helper method to cancel a diagram item to be selected.
/// </summary>
/// <param name="diagramItem"></param>
/// <param name="currentSelection"></param>
/// <param name="proposedItemsToAdd"></param>
/// <param name="proposedItemsToRemove"></param>
Helper method to cancel a diagram item to be selected.
Helper method to cancel a diagram item to be selected .
private static void RemoveSelectedDiagramItem(
            DiagramItem diagramItem, SelectedShapesCollection currentSelection, DiagramItemCollection proposedItemsToAdd,
            DiagramItemCollection proposedItemsToRemove)
        {
            if (currentSelection.Contains(diagramItem) == false
                && proposedItemsToAdd.Contains(diagramItem))
            {
                proposedItemsToAdd.Remove(diagramItem);
            }
            if (currentSelection.Contains(diagramItem)
                && proposedItemsToRemove.Contains(diagramItem) == false)
            {
                proposedItemsToRemove.Add(diagramItem);
            }
        }
private static void RemoveSelectedDiagramItem ( DiagramItem diagramItem , SelectedShapesCollection currentSelection , DiagramItemCollection proposedItemsToAdd , DiagramItemCollection proposedItemsToRemove ) { if ( currentSelection . Contains ( diagramItem ) == false && proposedItemsToAdd . Contains ( diagramItem ) ) { proposedItemsToAdd . Remove ( diagramItem ) ; } if ( currentSelection . Contains ( diagramItem ) && proposedItemsToRemove . Contains ( diagramItem ) == false ) { proposedItemsToRemove . Add ( diagramItem ) ; } }
Helper method to cancel a diagram item to be selected.
Helper method to cancel a diagram item to be selected .
diagramItem
DiagramItem
None
currentSelection
SelectedShapesCollection
None
proposedItemsToAdd
DiagramItemCollection
None
proposedItemsToRemove
DiagramItemCollection
None