Example #1
0
        public static string DisplayRangeListText(NumberRangeList Ranges)
        {
            string str2 = "";

            str2 = DisplayRangeText(Ranges[0]);
            int num2 = Ranges.Count - 1;

            for (int i = 1; i <= num2; i++)
            {
                NumberRange range = Ranges[i];
                str2  = str2 + ", " + DisplayRangeText(Ranges[i]);
                range = null;
            }
            return(str2);
        }
Example #2
0
        public static string DisplayRangeText(NumberRange Range)
        {
            string      str2  = "";
            NumberRange range = Range;

            if (range.First == range.Last)
            {
                str2 = "&" + DisplayCodeText(range.First);
            }
            else if ((range.Last - range.First) == 1)
            {
                str2 = "&" + DisplayCodeText(range.First) + ", &" + DisplayCodeText(range.Last);
            }
            else
            {
                str2 = "&" + DisplayCodeText(range.First) + " .. &" + DisplayCodeText(range.Last);
            }
            range = null;
            return(str2);
        }
Example #3
0
 public int Add(NumberRange Range)
 {
     return(base.Add(Range));
 }