private void SetPassCount(enum_BP_PASSCOUNT_STYLE passCountStyle, uint passCount)
 {
     requestInfo.dwFields   |= enum_BPREQI_FIELDS.BPREQI_PASSCOUNT;
     requestInfo.bpPassCount = new BP_PASSCOUNT
     {
         stylePassCount = passCountStyle,
         dwPassCount    = passCount,
     };
 }
Beispiel #2
0
        public static PythonBreakpointPassCountKind ToPython(this enum_BP_PASSCOUNT_STYLE style)
        {
            switch (style)
            {
            case enum_BP_PASSCOUNT_STYLE.BP_PASSCOUNT_NONE:
                return(PythonBreakpointPassCountKind.Always);

            case enum_BP_PASSCOUNT_STYLE.BP_PASSCOUNT_MOD:
                return(PythonBreakpointPassCountKind.Every);

            case enum_BP_PASSCOUNT_STYLE.BP_PASSCOUNT_EQUAL:
                return(PythonBreakpointPassCountKind.WhenEqual);

            case enum_BP_PASSCOUNT_STYLE.BP_PASSCOUNT_EQUAL_OR_GREATER:
                return(PythonBreakpointPassCountKind.WhenEqualOrGreater);

            default:
                throw new ArgumentException("Unrecognized enum_BP_PASSCOUNT_STYLE value");
            }
        }
Beispiel #3
0
        public static PythonBreakpointPassCountKind ToPython(this enum_BP_PASSCOUNT_STYLE style)
        {
            switch (style)
            {
            case enum_BP_PASSCOUNT_STYLE.BP_PASSCOUNT_NONE:
                return(PythonBreakpointPassCountKind.Always);

            case enum_BP_PASSCOUNT_STYLE.BP_PASSCOUNT_MOD:
                return(PythonBreakpointPassCountKind.Every);

            case enum_BP_PASSCOUNT_STYLE.BP_PASSCOUNT_EQUAL:
                return(PythonBreakpointPassCountKind.WhenEqual);

            case enum_BP_PASSCOUNT_STYLE.BP_PASSCOUNT_EQUAL_OR_GREATER:
                return(PythonBreakpointPassCountKind.WhenEqualOrGreater);

            default:
                throw new ArgumentException(Strings.UnrecognizedEnumValue.FormatUI(typeof(enum_BP_PASSCOUNT_STYLE)), nameof(style));
            }
        }