コード例 #1
0
        private static void RemoveCurrentTimerUnit(
            SentenceDecorator timerSentenceDecorator, int timerUnitSize)
        {
            int firstTimerIndexPosition = timerSentenceDecorator.FirstTimerPosition;

            timerSentenceDecorator.Texts.RemoveRange(
                firstTimerIndexPosition,
                timerUnitSize);
        }
コード例 #2
0
 public static void InsertReversedMDUnitBeforePosition(
     SentenceDecorator sentenceDecorator,
     List <Text> reversedMDUnit,
     int startPosition)
 {
     sentenceDecorator.Texts.InsertRange(
         startPosition,
         reversedMDUnit);
 }
コード例 #3
0
 public static void RemoveCurrentMDUnit(
     SentenceDecorator sentenceDecorator,
     MoveableUnit[] MDPositions,
     int startPosition)
 {
     sentenceDecorator.Texts.RemoveRange(
         startPosition,
         MDPositions[MDPositions.Length - 1].EndPosition + 1);
 }
コード例 #4
0
        public static void InsertDeParticleAfterAndUnderline(
            SentenceDecorator bKBySentenceDecorator, int i)
        {
            bKBySentenceDecorator.Texts.Insert(
                i + 1,
                CreateNewDeParticle(
                    bKBySentenceDecorator.Texts[i].pe_order, 0));

            bKBySentenceDecorator.Texts[i].pe_merge_ahead = 1;
        }
コード例 #5
0
        public static void InsertDeParticleBeforeAndUnderline(
            SentenceDecorator bkBySentenceDecorator, int i)
        {
            var previousOrderNumber = i == 0
                ? bkBySentenceDecorator.Texts[i].pe_order - 10
                : bkBySentenceDecorator.Texts[i - 1].pe_order;

            bkBySentenceDecorator.Texts.Insert(
                i,
                CreateNewDeParticle(
                    previousOrderNumber, 1));
        }
コード例 #6
0
 private static void UnderlineTimerUnit(
     SentenceDecorator timerSentenceDecorator, int newFirstTimerIndexPosition, int timerUnitCount)
 {
     timerSentenceDecorator.Texts[newFirstTimerIndexPosition].pe_merge_ahead
         = timerUnitCount - 1;
 }