Пример #1
0
 private static void AppendLine1(
     StringBuilder line1,
     Digit digit)
 {
     Append(line1,
            digit
            .Top
                     ? " _ "
                     : "   ");
 }
Пример #2
0
 private static void AppendLine3(
     StringBuilder line3,
     Digit digit)
 {
     Append(line3,
            digit
            .BottomLeft
                     ? "|"
                     : " ");
     Append(line3,
            digit
            .Bottom
                      ? "_"
                      : " ");
     Append(line3,
            digit
            .BottomRight
                      ? "|"
                      : " ");
 }
Пример #3
0
        private static void AppendLine2(
            StringBuilder line2,
            Digit digit)
        {
            Append(
                line2,
                digit
                .TopLeft
                        ? "|"
                        : " ");

            Append(line2,
                   digit
                   .Middle
                             ? "_"
                             : " ");
            Append(
                line2,
                digit
                .TopRight
                        ? "|"
                        : " ");
        }