private void UpdateForwardingCheckBoxes()
{
this.checkBoxF1.Enabled = false;
this.checkBoxF2.Enabled = false;
this.checkBoxF3.Enabled = false;
this.checkBoxF4.Enabled = false;
this.checkBoxF5.Enabled = false;
this.checkBoxF6.Enabled = false;
this.checkBoxF7.Enabled = false;
this.checkBoxF8.Enabled = false;
this.checkBoxF9.Enabled = false;
this.checkBoxF10.Enabled = false;
for (int I = 0; I < this.checkedListBoxRecordingName.Items.Count; I++)
{
switch (I)
{
case 0:
if ((string)listBoxForwardingInterface.Items[0] != "None")
this.checkBoxF1.Enabled = true;
break;
case 1:
if ((string)listBoxForwardingInterface.Items[1] != "None")
this.checkBoxF2.Enabled = true;
break;
case 2:
if ((string)listBoxForwardingInterface.Items[2] != "None")
this.checkBoxF3.Enabled = true;
break;
case 3:
if ((string)listBoxForwardingInterface.Items[3] != "None")
this.checkBoxF4.Enabled = true;
break;
case 4:
if ((string)listBoxForwardingInterface.Items[4] != "None")
this.checkBoxF5.Enabled = true;
break;
case 5:
if ((string)listBoxForwardingInterface.Items[5] != "None")
this.checkBoxF6.Enabled = true;
break;
case 6:
if ((string)listBoxForwardingInterface.Items[6] != "None")
this.checkBoxF7.Enabled = true;
break;
case 7:
if ((string)listBoxForwardingInterface.Items[7] != "None")
this.checkBoxF8.Enabled = true;
break;
case 8:
if ((string)listBoxForwardingInterface.Items[8] != "None")
this.checkBoxF9.Enabled = true;
break;
case 9:
if ((string)listBoxForwardingInterface.Items[9] != "None")
this.checkBoxF10.Enabled = true;
break;
}
}
}