Exemple #1
0
        public void Render(RenderWindowLineEngine renderLineEngine, int lineNo, int width)
        {
            if (lineNo == 0)
            {
                renderLineEngine.Write(" " + Header);
            }


            if (lineNo == 2)
            {
                renderLineEngine.Write("     ");
                renderLineEngine.ChangeForegroundColor(ConsoleColor.White);
                renderLineEngine.ChangeBackgroundColor(ConsoleColor.Black);
                renderLineEngine.Write(_value.ValueToRender);
                renderLineEngine.ResetColor();
            }

            if (lineNo == 4)
            {
                renderLineEngine.WriteCentred(this, EnterEscapePhrase);
            }

            CursorY = 2;
            CursorX = 5 + _value.CursorPosition;
        }
Exemple #2
0
        public void Render(RenderWindowLineEngine renderLineEngine, int lineNo, int width)
        {
            if (lineNo == 0)
            {
                renderLineEngine.Write(" " + Header);
            }

            if (lineNo == 2)
            {
                renderLineEngine.Write("     " + Message);
            }

            if (lineNo == 4)
            {
                renderLineEngine.WriteCentred(this, EnterEscapePhrase);
            }
        }