示例#1
0
            static void Main(string[] args)
            {
                Basic      t1 = new Basic();
                Income     t2 = new Income();
                Properties t3 = new Properties();

                t1.BasicQuestions();
                t2.Incomeinput();
                Thread.Sleep(2000);
                t3.Main();

                // Allows user to see mortgage amount before pressing ESC to exit the program:
                Thread.Sleep(3000);
                Console.WriteLine();
                Console.WriteLine();
                Console.WriteLine("Thank you for using the Interactive Mortgage Calculator.");
                Console.WriteLine("Please press ESC to exit.");
                ConsoleKeyInfo k;

                while (true)
                {
                    k = Console.ReadKey(true);
                    if (k.Key == ConsoleKey.Escape)
                    {
                        break;
                    }

                    Console.WriteLine("{0} --- ", k.Key);
                }
            }