Ejemplo n.º 1
0
        public void TextReady(IWrapper sender)
        {
            lock (_currentLines)
            {
                _currentLine = new StringBuilder(_wrapper.GetCurrentLine());

                ConsoleString[] strings = sender.GetText();
                foreach (ConsoleString str in strings)
                {
                    _currentLines.Add(str);
                }
            }
            ProcessText();
        }
Ejemplo n.º 2
0
        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();
        }