private void FillShortCodes() { bool enabled = PatComm.IsAnyShortCodeServiceEnabled(comboShortCodeClinic.SelectedClinicNum); labelUnsavedShortCodeChanges.Visible = false; checkOptInPrompt.Enabled = enabled; checkOptInPrompt.Checked = ClinicPrefs.GetBool(PrefName.ShortCodeOptInOnApptComplete, comboShortCodeClinic.SelectedClinicNum); textShortCodeOptInClinicTitle.Enabled = enabled; textShortCodeOptInClinicTitle.Text = GetShortCodeOptInClinicTitle(); }
private void ShowShortCodes() { List <long> listClinicNums = 0L.SingleItemToList(); if (PrefC.HasClinicsEnabled) { listClinicNums.AddRange(Clinics.GetDeepCopy().Select(x => x.ClinicNum)); } groupShortCode.Visible = listClinicNums .Where(x => PatComm.IsAnyShortCodeServiceEnabled(x)) .Count() > 0; FillShortCodes(); }