Esempio n. 1
0
 public Form1()
 {
     InitializeComponent();
     bicycle = new BicycleMointor();
     observer = new Observer(lblRPM, bicycle);
     cph = new CPHObserver(lblCPH, bicycle);
     kph = new KPHObserver(lblKPH, bicycle);
 }
Esempio n. 2
0
 public Form1()
 {
     InitializeComponent();
     bicycle  = new BicycleMointor();
     observer = new Observer(lblRPM, bicycle);
     cph      = new CPHObserver(lblCPH, bicycle);
     kph      = new KPHObserver(lblKPH, bicycle);
 }
Esempio n. 3
0
 public Observer(Label label, BicycleMointor bicycle)
 {
     this.bicycle         = bicycle;
     this.label           = label;
     currentPRM           = 0;
     currentComputerValue = 0.0;
     bicycle.AddSubscriber(this);
 }
Esempio n. 4
0
 public KPHObserver(Label label, BicycleMointor bicycle)
     : base(label, bicycle)
 {
 }