Is there a more efficient way to set variables on a RadioButton's CheckChanged event?
- by C Patton
I have 16 radio buttons in an application of mine..
I have to set a variable based on which one was selected.. and I've produced some very ugly code doing this..
private void Foo_CheckedChanged(object sender, EventArgs e)
{
convertSource = 1;
}
private void Bar_CheckedChanged(object sender, EventArgs e)
{
convertSource…