コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }