Exemple #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);
        }
Exemple #2
0
 //ctor
 public CalObserver(Label displayLabel, Subject bikeSubject)
     : base(displayLabel,bikeSubject)
 {
 }