protected override void OnMouseClick(MouseEventArgs e) { Focus(); HandleByteSelecting(e.X, e.Y); AddAddressToHistory(selectedPosition); ByteSelected?.Invoke(this, selectedPosition, currentHighlights[SelectedIndexFromFirstVisibleByte] ?? new Highlight[0]); Refresh(); }
public void GoForward() { if (historyIndex == History.Count || historyIndex == History.Count - 1) { return; } historyIndex++; selectedPosition = History[historyIndex]; EnsureSelectedByteVisible(); Refresh(); ByteSelected?.Invoke(this, selectedPosition, currentHighlights[SelectedIndexFromFirstVisibleByte] ?? new Highlight[0]); }