Exemplo n.º 1
0
        private void ctrlCodeViewer_MouseDown(object sender, MouseEventArgs e)
        {
            _tooltipManager.Close();

            if (e.Button == MouseButtons.Left && e.Location.X < this.ctrlCodeViewer.CodeMargin / 4)
            {
                int             relativeAddress = ctrlCodeViewer.GetLineNumberAtPosition(e.Y);
                AddressTypeInfo info            = GetAddressInfo(ctrlCodeViewer.GetLineIndexAtPosition(e.Y));
                BreakpointManager.ToggleBreakpoint(relativeAddress, info, false);
            }
        }
Exemplo n.º 2
0
        private void ctrlCodeViewer_MouseDown(object sender, MouseEventArgs e)
        {
            if (_codeTooltip != null)
            {
                _codeTooltip.Close();
                _codeTooltip = null;
            }

            int address = ctrlCodeViewer.GetLineNumberAtPosition(e.Y);

            _lineBreakpoint = BreakpointManager.GetMatchingBreakpoint(address);

            if (e.Button == MouseButtons.Left && e.Location.X < this.ctrlCodeViewer.CodeMargin / 4)
            {
                BreakpointManager.ToggleBreakpoint(address, false);
            }
        }
Exemplo n.º 3
0
 private void ToggleBreakpoint(bool toggleEnabled)
 {
     BreakpointManager.ToggleBreakpoint(_lastCodeWindow.GetCurrentLine(), toggleEnabled);
 }
Exemplo n.º 4
0
 private void mnuToggleBreakpoint_Click(object sender, EventArgs e)
 {
     BreakpointManager.ToggleBreakpoint(this.ctrlCodeViewer.CurrentLine, false);
 }