Bari.Console.UI.ConsoleUserInterface.ChangeColor C# (CSharp) Method

ChangeColor() private method

private ChangeColor ( bool inEmphasis, bool inExample, bool inHeading ) : void
inEmphasis bool
inExample bool
inHeading bool
return void
        private void ChangeColor(bool inEmphasis, bool inExample, bool inHeading)
        {
            if (inHeading)
            {
                System.Console.ForegroundColor = ConsoleColor.Green;
            }
            else
            {
                if (inEmphasis)
                    System.Console.ForegroundColor = ConsoleColor.Yellow;
                else if (inExample)
                    System.Console.ForegroundColor = ConsoleColor.White;
                else
                    System.Console.ForegroundColor = ConsoleColor.Gray;
            }
        }