Example #1
0
            public static void ProcessWhat(string line)
            {
                if (CommandLineInterface.AwaitConfirmationKeyPress("Is there a problem? Don't say yes. (Y/N) "))
                {
                    Console.ForegroundColor = ConsoleColor.Cyan;
                    Console.WriteLine("\n\nThis is unacceptible.");
                    Console.ResetColor();

                    System.Threading.Thread.Sleep(5000);
                }
                else
                {
                    Console.WriteLine();

                    for (int i = 1; i <= 3; ++i)
                    {
                        System.Threading.Thread.Sleep(1000);
                        Console.Write(". ");
                    }

                    System.Threading.Thread.Sleep(1000);

                    Console.WriteLine("Good.");

                    System.Threading.Thread.Sleep(2000);
                }
            }
Example #2
0
            public static void ClearTranscript(string line)
            {
                if (
                    GetVerb(line).Equals(Operators.Verbs.Commands.force) ||

                    CommandLineInterface.AwaitConfirmationKeyPress
                    (
                        "This will erase all definitions currently loaded in the transcript.\nContinue? (Y/N) "
                    )
                    )
                {
                    Definition.Clear();
                    Transcript.Clear();
                }
            }