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