Exemple #1
0
 public Form1()
 {
     InitializeComponent();
     bikeSubject = new BicycleSubject(0);
     rpm         = new RPMCalc(labelRPM, bikeSubject);
     calorie     = new CalorieCalc(labelCalories, bikeSubject);
     dist        = new DistanceCalc(labelDistance, bikeSubject);
 }
Exemple #2
0
 public Form1()
 {
     InitializeComponent();
     bikeSubject = new BicycleSubject(0);
     rpm = new RPMCalc(labelRPM, bikeSubject);
     calorie = new CalorieCalc(labelCalories, bikeSubject);
     dist = new DistanceCalc(labelDistance, bikeSubject);
 }