Example #1
0
 public void AddLine(string line)
 {
     if (_content.Length > 0)
     {
         _content.Append("\n");
     }
     _content.Append(line);
     LinesChanged.Invoke(new ChangedEventArgs(line, _content.ToString()));
 }
Example #2
0
 public void Clear()
 {
     _content.Clear();
     LinesChanged.Invoke(new ChangedEventArgs("", ""));
 }
        private static void UpdateLines()
        {
            Lines = LineBuffer.ToArray();

            LinesChanged?.Invoke(Lines);
        }