예제 #1
0
        public override ConCol PopColor()
        {
            var color = base.PopColor();

            System.Console.ForegroundColor = ColorStack.Peek().ConsoleColor;
            return(color);
        }
예제 #2
0
            public void PopStyleScope()
            {
                var scope = StyleStack.Count;

                while (FontStack.Count > 0 && FontStack.Peek().Scope == scope)
                {
                    FontStack.Pop();
                }

                while (ColorStack.Count > 0 && ColorStack.Peek().Scope == scope)
                {
                    ColorStack.Pop();
                }

                while (GlyphShaderStack.Count > 0 && GlyphShaderStack.Peek().Scope == scope)
                {
                    GlyphShaderStack.Pop();
                }
            }