title: How to handle a large number of radiobuttons with clean code？
body: <p>There are many groups of radiobuttons on the page, and when you click on the first one, you add one to the string, and so on. If a group of radiobuttons doesn't have an option to click, a dialog box pops up，How do I refactor this complex piece of code？</p>
  
  <pre><code>        if (a121.IsChecked == true) { all1 += "1"; }
  else    if (a122.IsChecked == true) { all1 += "2"; }
  else    if (a123.IsChecked == true) { all1 += "3"; }
  else    if (a124.IsChecked == true) { all1 += "4"; }
  else    if (a125.IsChecked == true) { all1 += "5"; }
  else
          { MessageBox.Show("An option is not selected"); }
  
          if (a131.IsChecked == true) { all1 += "1"; }
  else    if (a132.IsChecked == true) { all1 += "2"; }
  else    if (a133.IsChecked == true) { all1 += "3"; }
  else    if (a134.IsChecked == true) { all1 += "4"; }
  else    if (a135.IsChecked == true) { all1 += "5"; }
  else
          { MessageBox.Show("An option is not selected"); }
  
          if (a141.IsChecked == true) { all1 += "1"; }
  else    if (a142.IsChecked == true) { all1 += "2"; }
  else    if (a143.IsChecked == true) { all1 += "3"; }
  else    if (a144.IsChecked == true) { all1 += "4"; }
  else    if (a145.IsChecked == true) { all1 += "5"; }
  else
          { MessageBox.Show("An option is not selected"); }
  </code></pre>