private void radioAdj_CheckedChanged(object sender, EventArgs e) { if (radioAdj.Checked) { labelDescr.Text = Lan.g(this, "Broken appointments based on broken appointment adjustments"); listOptions.Items.Clear(); _listPosAdjTypes.Clear(); listOptions.SelectionMode = SelectionMode.MultiSimple; _listPosAdjTypes = Defs.GetPositiveAdjTypes(); long brokenApptAdjDefNum = PrefC.GetLong(PrefName.BrokenAppointmentAdjustmentType); for (int i = 0; i < _listPosAdjTypes.Count; i++) { listOptions.Items.Add(_listPosAdjTypes[i].ItemName); if (_listPosAdjTypes[i].DefNum == brokenApptAdjDefNum) { listOptions.SelectedIndices.Add(i); } } listOptions.Visible = true; } else { listOptions.Visible = false; } }