Example #1
0
        public static string Translate(this MailingElementType type, Translator translator)
        {
            switch (type)
            {
            case MailingElementType.Header:
                return(translator.Get("Enum.MailingElementType.Header", "Header value in the mailing element type enum", "Header"));

            case MailingElementType.Footer:
                return(translator.Get("Enum.MailingElementType.Footer", "Footer value in the mailing element type enum", "Footer"));

            default:
                throw new NotSupportedException();
            }
        }
Example #2
0
 public NamedIntViewModel(Translator translator, MailingElementType type, bool selected)
     : this((int)type, type.Translate(translator), selected)
 {
 }