Beispiel #1
0
        ///<summary>Determines if this clinic is set to use Short Codes for this ApptReminderType.</summary>
        private static bool IsUsingShortCodesForType(ApptReminderType type, long clinicNum)
        {
            //ClinicPrefs.GetLong() returns 0 if pref not found.
            List <ApptReminderType> listUsingShortCodes = ((ShortCodeTypeFlag)ClinicPrefs.GetLong(PrefName.ShortCodeApptReminderTypes, clinicNum))
                                                          .GetFlags()
                                                          .Select(x => x.GetAttributeOrDefault <ShortCodeAttribute>().ApptReminderType).ToList();

            return(type.In(listUsingShortCodes));
        }