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