예제 #1
0
        public Form1()
        {
            InitializeComponent();

            //declare& instantiate sub
            subject = new Subject();

            //instantiate obs
            rpmOb = new RPMObserver(lbRPM, subject);
            calOb = new CalObserver(lbCal, subject);
            kmOb = new KMObserver(lbKM, subject);
        }
예제 #2
0
 //ctor
 public CalObserver(Label displayLabel, Subject bikeSubject)
     : base(displayLabel,bikeSubject)
 {
 }