private void DoTheBinding() { //Retrives all Recipient List Types and bind them to dropdown list Array recipientListTypesValues = Enum.GetValues(typeof(RecipientListType)); for (int i = 0; i < recipientListTypesValues.Length; i++) { dropListRecipientTypes.Items.Add(new ListItem( NewsLetterUtil.GetEnumLanguageName((RecipientListType)recipientListTypesValues.GetValue(i)), //languagespecific name ((int)recipientListTypesValues.GetValue(i)).ToString())); } dropListRecipientTypes.DataBind(); }
public string GetRecipientListTypeString(RecipientListType listType) { return(NewsLetterUtil.GetEnumLanguageName(listType)); }
/// <summary> /// Returns the number of emails to send for a given newsletter and a given task /// </summary> /// <returns></returns> public virtual int GetBatchSize() { // IMPORTANT! Do not call the NewsletterConfiguration.SendBatchSize property // as it calls this one. return(NewsLetterUtil.GetSendBatchSize()); }