Example #1
0
        public ClockTwo(int timeZone, int xPos, int yPos)
        {
            InitializeComponent();

            obj = new ObserverTwo();
            timerTwo.Enabled = true;
            additional       = timeZone;
            x = xPos;
            y = yPos;;
        }
Example #2
0
        static void Main(string[] args)
        {
            WeatherStation weatherStation = new WeatherStation();
            ObserverOne    observerOne    = new ObserverOne(weatherStation);
            ObserverTwo    observerTwo    = new ObserverTwo(weatherStation);
            ObserverThree  observerThree  = new ObserverThree(weatherStation);

            weatherStation.BeginCollectWeatherData();

            Console.ReadLine();
        }