Ejemplo n.º 1
0
        public void DeployNote()
        {
            Console.BackgroundColor = ConsoleColor.Black;
            Console.SetWindowSize(100, 30);
            Console.SetBufferSize(100, 30);

            Kit set = new Kit();

            Console.Clear();

            Console.ForegroundColor = ConsoleColor.DarkMagenta;
            Console.WriteLine("\n::::::::::::::::::::::::::::::::::::::::::");
            Console.WriteLine("Deployment Note Wizard for MS Teams.");
            Console.WriteLine("::::::::::::::::::::::::::::::::::::::::::\n");
            Console.ResetColor();

            set.CreateDirDEPLOYMENTS();
            set.TimeData();
            set.SelectRightFolder();

            Console.WriteLine(set.option);

            List <string> menuItems = new List <string>()
            {
                "\n  QA",
                "  PROD",
                "  both - QA & PROD",
                "\nExit"
            };

            Console.CursorVisible = false;

            while (true)
            {
                string selectedMenuItem = drawMenu(menuItems);
                if (selectedMenuItem == "\n  QA")
                {
                    Console.Clear();

                    Console.WriteLine("\n");
                    new Qa();
                    Console.WriteLine("\n");
                }

                else if (selectedMenuItem == "  PROD")
                {
                    Console.Clear();

                    Console.WriteLine("\n");
                    new Prod();
                    Console.WriteLine("\n");
                }

                else if (selectedMenuItem == "  both - QA & PROD")
                {
                    Console.Clear();

                    Console.WriteLine("\n");
                    new Qaprod();
                    Console.WriteLine("\n");
                }

                else if (selectedMenuItem == "\nExit")
                {
                    //set.Short_menu();
                }

                Console.ForegroundColor = ConsoleColor.DarkMagenta;
                Console.WriteLine("\n::::::::::::::::::::::::::::::::::::::::::");
                Console.WriteLine("Deployment Note Wizard for MS Teams.");
                Console.WriteLine("::::::::::::::::::::::::::::::::::::::::::\n");
                Console.ResetColor();

                set.CreateDirDEPLOYMENTS();
                set.TimeData();
                set.SelectRightFolder();

                Console.WriteLine(set.option);
            }
        }