Esempio n. 1
0
        /// <summary>
        /// reset display to default size and colors including the header
        /// </summary>
        public static void DisplayReset()
        {
            Console.SetWindowSize(_windowWidth, _windowHeight);
            Console.Title = _windowTitle;

            Console.Clear();
            Console.ResetColor();

            Console.ForegroundColor = _headerForegroundColor;
            Console.BackgroundColor = _headerBackgroundColor;

            Console.WriteLine(ConsoleUtil.FillStringWithSpaces(_windowWidth));
            Console.WriteLine(ConsoleUtil.Center(_headerText));
            Console.WriteLine(ConsoleUtil.FillStringWithSpaces(_windowWidth));

            Console.ForegroundColor = _bodyForegroundColor;
            Console.BackgroundColor = _bodyBackgroundColor;

            ConsoleUtil.DisplayMessage("");
        }