Exemplo n.º 1
0
        private static void ShowClint()
        {
            FastConsole.LineBreak();
            FastConsole.EmptyLine();
            // TODO CHANGE THIS TO PROPERTY
            ClientTalk("Clint welcomes You:");
            FastConsole.EmptyLine();
            FastConsole.LineBreak();
            Console.WriteLine("How can help?");
            FastConsole.LineBreak();
            //TODO CONSUME JSON AND USE IT ON SCREEN

            ShowMainMenu();

            var alive = true;

            while (alive)
            {
                var choice = Console.ReadLine();
                //var date = DateTime.Now;
                switch (choice)
                {
                case "0":
                    ShowMainMenu();
                    FastConsole.PressAnyKey();
                    break;

                case "1":
                    MakeMeAFile();
                    FastConsole.PressAnyKey();
                    break;

                case "2":
                    ShowGitMenu();
                    FastConsole.PressAnyKey();
                    break;

                case "5":
                    ClientTalk("");
                    FastConsole.PressAnyKey();
                    break;

                case "6":
                    var longText = new[] { "'dotnet.exe' (CoreCLR: DefaultDomain):",
                                           "Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\2.1.1\\System.Private.CoreLib.dll'.",
                                           "Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.",
                                           "dotnet.exe'(CoreCLR: clrhost): Loaded 'C:\\vsproj\\Clint\\Clint\\Clint\\bin\\Debug\\netcoreapp2.1\\Clint.dll'.",
                                           "Symbols loaded.",
                                           "dotnet.exe'(CoreCLR: clrhost): Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\2.1.1\\System.Runtime.dll'" +
                                           ".Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled." };
                    ClientTalk(longText);
                    FastConsole.PressAnyKey();
                    break;

                case "9":
                    ClientTalk("KILL");
                    FastConsole.PressAnyKey();
                    alive = false;
                    break;

                default:
                    ClientTalk("I didn't get it.. what?!");
                    break;
                }
            }

            //Console.Write($"Push the button, {name}, to stop wasting time on {date:d} {date:t} ...\n\n");
            //pressAnyKey();
        }