Esempio n. 1
0
        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);
        }