Esempio n. 1
0
        public string GetEmailSubject(Reminder reminder)
        {
            OccuranceType occurance = reminder.FindOccuranceType();

            if (occurance == OccuranceType.BEFORE_MONTH)
            {
                return(" in a month");
            }
            else if (occurance == OccuranceType.BEFORE_WEEK)
            {
                return(" in a week");
            }
            else if (occurance == OccuranceType.LAST_DAY)
            {
                return("today");
            }
            else
            {
                return(string.Empty);
            }
        }
Esempio n. 2
0
        private string GetFormattedOccuranceType(Reminder reminder)
        {
            OccuranceType occurance = reminder.FindOccuranceType();

            if (occurance == OccuranceType.BEFORE_MONTH)
            {
                return(" will get");
            }
            else if (occurance == OccuranceType.BEFORE_WEEK)
            {
                return(" will get");
            }
            else if (occurance == OccuranceType.LAST_DAY)
            {
                return("has");
            }
            else
            {
                return(string.Empty);
            }
        }