Пример #1
0
 /// <summary>
 /// Adds a new line to the specified side with the given text and change type.
 /// Adds a virtual line to the other side.
 /// </summary>
 /// <param name="lineText">The text of the new line.</param>
 /// <param name="changeType">The type of change to set the new line to.</param>
 /// <param name="leftSide">True if the new line should be added to the left side.</param>
 public void AddLine(string lineText, ChangeType changeType, bool leftSide)
 {
     if (leftSide)
     {
         LeftLines.Add(new DiffLine(lineText, changeType));
         RightLines.Add(new DiffLine("", changeType, true));
     }
     else
     {
         LeftLines.Add(new DiffLine("", changeType, true));
         RightLines.Add(new DiffLine(lineText, changeType));
     }
 }
Пример #2
0
        public void AddLine(Point[] leftPoints, Point[] rightPoints, double dist)
        {
            ILine leftLine  = ModelResolver.Resolve <ILine>();
            ILine rightLine = ModelResolver.Resolve <ILine>();

            leftLine.LinePoints = leftPoints;
            leftLine.Distance   = dist;

            rightLine.LinePoints = rightPoints;
            rightLine.Distance   = dist;

            LeftLines.Add(leftLine);
            RightLines.Add(rightLine);
        }
Пример #3
0
 /// <summary>
 /// Adds a new line to the both sides with the given text and change type.
 /// </summary>
 /// <param name="lineText">The text of the new line.</param>
 /// <param name="changeType">The type of change to set the new line to.</param>
 public void AddLine(string lineText, ChangeType changeType)
 {
     LeftLines.Add(new DiffLine(lineText, changeType));
     RightLines.Add(new DiffLine(lineText, changeType));
 }