//initialises clocks
 public ClockManager(Timer timer, Label display, AnalogClock clock)
 {
     digital = new DigitalTimer(timer, display);
     analog = new AnalogTimer(clock);
     digital.ShowClock();
     analog.HideClock();
 }
Example #2
0
 //initialises clocks
 public ClockManager(Timer timer, Label display, AnalogClock clock)
 {
     digital = new DigitalTimer(timer, display);
     analog  = new AnalogTimer(clock);
     digital.ShowClock();
     analog.HideClock();
 }
Example #3
0
 public AnalogTimer(AnalogClock clock)
 {
     currentTime = DateTime.Now;
     this.clock  = clock;
 }
 public AnalogTimer(AnalogClock clock)
 {
     currentTime = DateTime.Now;
     this.clock = clock;
 }