Exemplo n.º 1
0
 private void FormMain_Load(object sender, EventArgs e)
 {
     clock = new Clock(new Point(0, 0), Size, this);
     ((Clock)clock).TimeChanged.Subscribe(new ClockMinuteNotifier());
     ((Clock)clock).TimeChanged.Subscribe(new ClockHourNotifier());
     clock.Show();
     timer.Start();
 }
Exemplo n.º 2
0
 private void FormMain_Paint(object sender, PaintEventArgs e)
 {
     clock.Show();
 }