Beispiel #1
0
 private void EditBreakpoint(Breakpoint storedBreakpoint)
 {
     using (EditBreakpointDialog dialog = new EditBreakpointDialog(storedBreakpoint))
     {
         dialog.ShowDialog();
         if (dialog.DialogResult == DialogResult.OK && dialog.Breakpoint != null)
         {
             Breakpoint bp = dialog.Breakpoint;
             if (storedBreakpoint.ID >= 0)
             {
                 mConnection.Debugger.RemoveBreakpoint(storedBreakpoint.ID);
             }
             mConnection.Debugger.SetBreakpoint(bp);
         }
     }
 }
 private void EditBreakpoint(Breakpoint storedBreakpoint)
 {
     using (EditBreakpointDialog dialog = new EditBreakpointDialog(storedBreakpoint))
     {
         dialog.ShowDialog();
         if (dialog.DialogResult == DialogResult.OK && dialog.Breakpoint != null)
         {
             Breakpoint bp = dialog.Breakpoint;
             if (storedBreakpoint.ID >= 0)
                 mConnection.Debugger.RemoveBreakpoint(storedBreakpoint.ID);
             mConnection.Debugger.SetBreakpoint(bp);
         }
     }
 }