//initialises clocks
 public ClockManager(Timer timer, Label display, AnalogClock clock)
 {
     digital = new DigitalTimer(timer, display);
     analog = new AnalogTimer(clock);
     digital.ShowClock();
     analog.HideClock();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 3
0
 public AnalogTimer(AnalogClock clock)
 {
     currentTime = DateTime.Now;
     this.clock  = clock;
 }
 public AnalogTimer(AnalogClock clock)
 {
     currentTime = DateTime.Now;
     this.clock = clock;
 }