示例#1
0
        public Form1()
        {
            InitializeComponent();

            bicycleSubject = new BicycleSubject(0);
            rpmObserver = new RPMObserver(lbDisplayRPM, bicycleSubject);
            kphObserver = new KPHObserver(lbKPH, bicycleSubject);
            cphObserver = new CPHObserver(lbCalPerHour, bicycleSubject);
        }
示例#2
0
        public Form1()
        {
            InitializeComponent();

            bicycleSubject = new BicycleSubject(0);
            rpmObserver = new RPMObserver(lbDisplayRPM, bicycleSubject);
            kphObserver = new KPHObserver(lbKPH, bicycleSubject);
            cphObserver = new CPHObserver(lbCalPerHour, bicycleSubject);
        }