public void TurnOnRadio(bool musicOn, MusicMedia mm) { if (musicOn) { MessageBox.Show(string.Format("Jamming {0}", mm.ToString())); } else { MessageBox.Show("Quiet time..."); } }
// Inherited method. public void TurnOnRadio(bool state, MusicMedia mm) { if (state) { MessageBox.Show("Jamming " + mm.ToString()); } else { MessageBox.Show("Quiet time..."); } }