Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LineFormatEventArgs"/> class.
        /// </summary>
        /// <param name="line">The associated line.</param>
        public LineFormatEventArgs(LineViewModel line)
            : base(line)
        {
            _ranges = new List <ColorRange>();
            _ranges.Add(new ColorRange(1, Text.Length, 0, null));

            _errorRanges = new List <ColorRange>();
            _errorRanges.Add(new ColorRange(1, Text.Length, 0, null));
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LineEventArgs"/> class.
 /// </summary>
 /// <param name="line">The associated line.</param>
 public LineEventArgs(LineViewModel line)
 {
     Line = line;
     Text = line.PendingText ?? line.Text;
 }