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); } }
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); } }