private void buttonSetRPM_Click(object sender, EventArgs e) { string input = textBoxRPMInput.Text; if (input.Equals("")) { input = "0"; } int currentSpeed = Int32.Parse(input); bikeMonitor.NotifyObservers(currentSpeed); }
private void buttonSetRPM_Click(object sender, EventArgs e) { string input = textBoxRPMInput.Text; if (input.Equals("")) { input = "0"; } int currentSpeed = Int32.Parse(input); bikeMonitor.NotifyObservers(currentSpeed); }