public void TextReady(IWrapper sender) { //_currentLine = new StringBuilder(_wrapper.GetCurrentLine()); ConsoleString[] strings = sender.GetText(); lock (_availableLines) { foreach (ConsoleString str in strings) { _availableLines.Add(str); } } _currentLine = sender.GetCurrentLine(); StartAlertListeners(); }