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();
        }
Example #2
0
 public string GetRecipientListTypeString(RecipientListType listType)
 {
     return(NewsLetterUtil.GetEnumLanguageName(listType));
 }