Beispiel #1
0
        public Form1()
        {
            InitializeComponent();

            subject = new RPMSubject();
            rpm     = new RPMObserver(lb_RPM_Display, subject);
            calorie = new CalorieCalculatorObserver(lb_CaloriesDisplay, subject);
            speed   = new SpeedObserver(lb_kmsPerHourDisplay, subject);
        }
Beispiel #2
0
        public Form1()
        {
            InitializeComponent();

            subject = new RPMSubject();
            rpm = new RPMObserver(lb_RPM_Display, subject);
            calorie = new CalorieCalculatorObserver(lb_CaloriesDisplay, subject);
            speed = new SpeedObserver(lb_kmsPerHourDisplay, subject);
        }