private void brakeBox_CheckedChanged(object sender, EventArgs e) { train.SetBrake(brakeBox.Checked, 0.1); powerTextBox.Text = train.GetPower().ToString(); }