private void RefreshBreakpoint(NuGenFunctionBreakpointInformation breakpoint) { if (CurrentLine == null || breakpoint.Offset != CurrentLine.InstructionOffset) { int breakpointOffset = Convert.ToInt32(breakpoint.Offset); NuGenBreakpointLine breakpointLine = new NuGenBreakpointLine(breakpoint.State, breakpointOffset); string line; NuGenBaseILCode ilCode; int position = FindPositionOfILCodeByOffset(breakpointOffset, out line, out ilCode); if (ilCode != null) { SetLineColor(position, line, ilCode.Indentation, breakpointLine); } } }