Ejemplo n.º 1
0
 public ClockWindow()
 {
     InitializeComponent();
     localClock = new LocalClock(localTimeDisplay);
     londonClock = new EuropeanClock(londonTimeDisplay);
     newYorkClock = new AmericanClock(newYorkTimeDisplay);
     tokyoClock = new JapaneseClock(tokyoTimeDisplay);
 }
Ejemplo n.º 2
0
        public ClockWindow()
        {
            InitializeComponent();
            localClock = new LocalClock();
            londonClock = new EuropeanClock(londonTimeDisplay);
            newYorkClock = new AmericanClock(newYorkTimeDisplay);
            tokyoClock = new JapaneseClock(tokyoTimeDisplay);

            controller.StartClocks += localClock.StartLocalClock;
            controller.StartClocks += londonClock.StartEuropeanClock;
            controller.StartClocks += newYorkClock.StartAmericanClock;
            controller.StartClocks += tokyoClock.StartJapaneseClock;

            controller.StopClocks += localClock.StopLocalClock;
            controller.StopClocks += londonClock.StopEuropeanClock;
            controller.StopClocks += newYorkClock.StopAmericanClock;
            controller.StopClocks += tokyoClock.StopJapaneseClock;
        }
Ejemplo n.º 3
0
        public ClockWindow()
        {
            InitializeComponent();
            localClock   = new LocalClock();
            londonClock  = new EuropeanClock(londonTimeDisplay);
            newYorkClock = new AmericanClock(newYorkTimeDisplay);
            tokyoClock   = new JapaneseClock(tokyoTimeDisplay);

            controller.StartClocks += localClock.StartLocalClock;
            controller.StartClocks += londonClock.StartEuropeanClock;
            controller.StartClocks += newYorkClock.StartAmericanClock;
            controller.StartClocks += tokyoClock.StartJapaneseClock;

            controller.StopClocks += localClock.StopLocalClock;
            controller.StopClocks += londonClock.StopEuropeanClock;
            controller.StopClocks += newYorkClock.StopAmericanClock;
            controller.StopClocks += tokyoClock.StopJapaneseClock;
        }