void SetPresentationSpan(HexBufferSpanSelection newValue) { if (!presentationSpan.Equals(newValue)) { presentationSpan = newValue; PresentationSpanChanged?.Invoke(this, EventArgs.Empty); } }
void SetPresentationSpan(HexBufferSpanSelection newValue, HexCellPosition triggerPoint) { // Make sure that the popup is shown in the right column newValue = new HexBufferSpanSelection(newValue.BufferSpan, HexSpanSelectionFlags.Cell | (triggerPoint.Column == HexColumnType.Values ? HexSpanSelectionFlags.Values : HexSpanSelectionFlags.Ascii)); if (!presentationSpan.Equals(newValue)) { presentationSpan = newValue; PresentationSpanChanged?.Invoke(this, EventArgs.Empty); } }