コード例 #1
0
ファイル: LineFormatEventArgs.cs プロジェクト: Jamiras/Core
        /// <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));
        }
コード例 #2
0
ファイル: LineEventArgs.cs プロジェクト: Jamiras/Core
 /// <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;
 }