static void Main(string[] args) { ClockDisplay clock = new ClockDisplay(23, 59); Console.WriteLine(clock.display); clock.TimeTick(); Console.WriteLine(clock.display); Console.ReadLine(); }
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(); }