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++; } }); }
public PrintInstructions AddInstructions(PrintInstructions printInstructions) { printInstructions.Lines.ForEach(line => { Lines.Add(line); }); return(this); }