Beispiel #1
0
        public void Render(Action <OffscreenBuffer> template)
        {
            using (_offscreenBuffer.BeginRender())
            {
                template(_offscreenBuffer);

                if (!string.IsNullOrEmpty(ErrorMessage))
                {
                    _offscreenBuffer.WriteLine();
                    _offscreenBuffer.WriteError(ErrorMessage);

                    ErrorMessage = null;
                }
            }
        }