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(); }
private void FormMain_Paint(object sender, PaintEventArgs e) { clock.Show(); }