public ClockViewModel() { _clock = new CberlinClock(); _timer = new DispatcherTimer(); _timer.Interval = new TimeSpan(0, 0, 0, 0, 5); _timer.Tick += TimerTick; _timer.Start(); }
static void Main(string[] args) { var theTimeNow = DateTime.Now; var clock = new CberlinClock(); Console.WriteLine("The berlin clock for {0} is ...\n", theTimeNow.ToString("hh:mm:ss")); Console.WriteLine(clock.Generate(theTimeNow)); Console.ReadLine(); }