示例#1
0
        protected override void OnMouseClick(MouseEventArgs e)
        {
            Focus();

            HandleByteSelecting(e.X, e.Y);

            AddAddressToHistory(selectedPosition);

            ByteSelected?.Invoke(this, selectedPosition, currentHighlights[SelectedIndexFromFirstVisibleByte] ?? new Highlight[0]);

            Refresh();
        }
示例#2
0
        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]);
        }