コード例 #1
0
ファイル: Form1.cs プロジェクト: tsgardiner/IN710gardits1
        public Form1()
        {
            InitializeComponent();

            bicycleSubject = new BicycleSubject(0);
            rpmObserver = new RPMObserver(lbDisplayRPM, bicycleSubject);
            kphObserver = new KPHObserver(lbKPH, bicycleSubject);
            cphObserver = new CPHObserver(lbCalPerHour, bicycleSubject);
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: tsgardiner/IN710gardits1
        public Form1()
        {
            InitializeComponent();

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