コード例 #1
0
        public void RightJoin(PrintInstructions instructions)
        {
            int spaces = _maxLength();
            int myMax  = Lines.Count - 1;
            int insMax = instructions.Lines.Count - 1;
            int i;

            if (myMax < insMax)
            {
                for (i = 0; i < insMax - myMax; i++)
                {
                    NewLine(new String(' ', spaces));
                }
            }

            _addTrailingSpaces();

            i = 0;

            Lines.ForEach(line =>
            {
                if (i <= insMax)
                {
                    line.Add(instructions.Lines[i]);
                    i++;
                }
            });
        }
コード例 #2
0
        public PrintInstructions AddInstructions(PrintInstructions printInstructions)
        {
            printInstructions.Lines.ForEach(line =>
            {
                Lines.Add(line);
            });

            return(this);
        }