private void FormAutoOrtho_Load(object sender, EventArgs e) { _tableOutstandingAutoClaims = PatPlans.GetOutstandingOrtho(); if (!PrefC.HasClinicsEnabled) { labelClinic.Visible = false; comboClinics.Visible = false; } else { if (!Security.CurUser.ClinicIsRestricted) { comboClinics.Items.Add(Lan.g(this, "All")); comboClinics.SelectedIndex = 0; } _listClinics = Clinics.GetForUserod(Security.CurUser); for (int i = 0; i < _listClinics.Count; i++) { comboClinics.Items.Add(_listClinics[i].Abbr); if (_listClinics[i].ClinicNum == Clinics.ClinicNum) { comboClinics.SelectedIndex = i; if (!Security.CurUser.ClinicIsRestricted) { comboClinics.SelectedIndex++; //add 1 for "All" } } } } FillGrid(); }