示例#1
0
        static void Main(string[] args)
        {
            ClockDisplay clock = new ClockDisplay(23, 59);

            Console.WriteLine(clock.display);
            clock.TimeTick();
            Console.WriteLine(clock.display);
            Console.ReadLine();
        }
示例#2
0
        static void Main(string[] args)
        {
            ClockDisplay clock = new ClockDisplay();

            Console.WriteLine(clock.displayString);

            while (true)
            {
                clock.Timetick();
                Console.WriteLine(clock.displayString);
                Thread.Sleep(1000);
            }

            Console.ReadLine();
        }