I am new to C# and I am trying to check which one of seven radio button within a group box is checked. The line with the "case" is giving me trouble. I am able to make it work using multiple if statements, but I would like to know if a switch statement would work too. Thanks for your help! Here is the code snippet:
{
if (OptMaennlich.Checked == true)
{
double Grundumsatz = (double)NumGewicht.Value * 24;
switch (GrpAktivitaet)
{
case OptSchlafen.Checked == true
double PAL = 1.0;
break;