Beispiel #1
0
        private void OnLineAdded(TerminalLine terminalLine)
        {
            PrinterLines.Add(terminalLine);

            LineAdded?.Invoke(this, terminalLine);

            if (PrinterLines.Count > maxLinesToBuffer)
            {
                this.Clear();
            }
        }
Beispiel #2
0
        private void AddLine(TerminalLine terminalLine)
        {
            lock (printerLines)
            {
                printerLines.Add(terminalLine);

                LineAdded?.Invoke(this, terminalLine);

                if (printerLines.Count > maxLinesToBuffer)
                {
                    this.Clear();
                }
            }
        }