Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.Clear();

            //Console.WindowWidth = 150;
            //Console.WindowHeight = Console.LargestWindowHeight;
            //Console.WindowHeight = 50;

            //DrawRainbow();
            int Width  = Console.WindowWidth;
            int Height = Console.WindowHeight;

            int centerW = Width / 2;
            int centerH = Height / 2;


            var container = new SimpleContainer(centerW - Width / 6, centerH - Height / 4, Width / 2, Height / 2);

            container.BackgroundColor = ConsoleColor.Blue;
            container.Color           = ConsoleColor.White;
            container.ShadowColor     = ConsoleColor.White;
            container.isShadowEnabled = true;
            container.Draw();

            Console.ReadLine();
            //Console.ResetColor();
        }