Пример #1
0
        static void Main(string[] args)
        {
            Process p = Process.GetCurrentProcess();

            ShowWindow(p.MainWindowHandle, 3);     //SW_MAXIMIZE = 3 Makes the console fullscreen

            var arr = new[]
            {
                @" __    __    ___  _        __   ___   ___ ___    ___      ______   ___       ____   _       ___     __  __  _  ____   __ __  _____ ______    ___  ____  ",
                @"|  |__|  |  /  _]| |      /  ] /   \ |   |   |  /  _]    |      | /   \     |    \ | |     /   \   /  ]|  |/ ]|    \ |  |  |/ ___/|      |  /  _]|    \ ",
                @"|  |  |  | /  [_ | |     /  / |     || _   _ | /  [_     |      ||     |    |  o  )| |    |     | /  / |  ' / |  o  )|  |  (   \_ |      | /  [_ |  D  )",
                @"|  |  |  ||    _]| |___ /  /  |  O  ||  \_/  ||    _]    |_|  |_||  O  |    |     || |___ |  O  |/  /  |    \ |     ||  |  |\__  ||_|  |_||    _]|    / ",
                @"|  `  '  ||   [_ |     /   \_ |     ||   |   ||   [_       |  |  |     |    |  O  ||     ||     /   \_ |     \|  O  ||  :  |/  \ |  |  |  |   [_ |    \ ",
                @" \      / |     ||     \     ||     ||   |   ||     |      |  |  |     |    |     ||     ||     \     ||  .  ||     ||     |\    |  |  |  |     ||  .  \",
                @"  \_/\_/  |_____||_____|\____| \___/ |___|___||_____|      |__|   \___/     |_____||_____| \___/ \____||__|\_||_____| \__,_| \___|  |__|  |_____||__|\_|",
                @"",
                @"",
                @"              __ __  ____  ___      ___   ___   _____          ____   ____  ___ ___    ___  _____         ____    ___    ___   __  _  _____                  ",
                @"             |  |  ||    ||   \    /  _] /   \ / ___/         /    | /    ||   |   |  /  _]/ ___/        |    \  /   \  /   \ |  |/ ]/ ___/                  ",
                @"             |  |  | |  | |    \  /  [_ |     (   \_         |   __||  o  || _   _ | /  [_(   \_         |  o  )|     ||     ||  ' /(   \_                   ",
                @"             |  |  | |  | |  D  ||    _]|  O  |\__  |        |  |  ||     ||  \_/  ||    _]\__  |        |     ||  O  ||  O  ||    \ \__  |                  ",
                @"             |  :  | |  | |     ||   [_ |     |/  \ | __     |  |_ ||  _  ||   |   ||   [_ /  \ | __     |  O  ||     ||     ||     \/  \ |                  ",
                @"              \   /  |  | |     ||     ||     |\    ||  |    |     ||  |  ||   |   ||     |\    ||  |    |     ||     ||     ||  .  |\    |",
                @"               \_/  |____||_____||_____| \___/  \___||_ |    |___,_||__|__||___|___||_____| \___||_ |    |_____| \___/  \___/ |__|\_| \___| ",
                @"                                                       \|                                          \|                                        ",
            };

            Console.WriteLine("\n\n");
            var maxLength = arr.Aggregate(0, (max, line) => Math.Max(max, line.Length));
            var x         = Console.BufferWidth / 2 - maxLength / 2;

            for (int y = -arr.Length; y < Console.WindowHeight + arr.Length; y++)
            {
                Art drawArt = new Art();
                drawArt.ConsoleDraw(arr, x, y);
                Thread.Sleep(100);
            }
            //Console.WriteLine("Press Enter to Continue");
            //Console.ReadKey();



            int userInput = 0;                                        //beginning value of 0 for userinput

            while (userInput != 4)                                    //do this while userinput doesnt equal 4, on 4 we exit
            {
                SloganDisplay displayBlock = new SloganDisplay();     //slogan created and called displayBlock
                displayBlock.Display();                               //slogan used
                MainMenuClass mainMenuInstance = new MainMenuClass(); //main menu created and called mainMenuInstance
                userInput = mainMenuInstance.MainMenu();              //userinput is collected from the .MainMenu
                MainCaseClass mainCaseInstance = new MainCaseClass(); //main case created and called mainCaseInstance
                mainCaseInstance.MainCase(userInput);                 //take userinput send it to .MainCase
            }
        }