/// <summary>
 /// ShowMailPreview_List ctor
 /// </summary>
 public ShowMailPreview_List(Data.MailTemplateRepository mailTemplateRepository)
 {
     wim.CanContainSingleInstancePerDefinedList = true;
     wim.OpenInEditMode      = true;
     ListLoad               += ShowMailPreview_ListLoad;
     _mailTemplateRepository = mailTemplateRepository;
 }
        /// <summary>
        /// SendTestMail_List ctor
        /// </summary>
        public SendTestMail_List(MailTemplateRepository mailTemplateRepository, PlaceholderLogic placeholderLogic, ISendPreviewEmailEventHandler sendPreviewEmailEventHandler = null)
        {
            wim.OpenInEditMode = true;
            wim.CanContainSingleInstancePerDefinedList = true;
            if (wim.CurrentList != null)
            {
                wim.CurrentList.Label_Save = "Send";
            }

            ListLoad                     += SendTestMail_List_ListLoad;
            ListSave                     += SendTestMail_List_ListSave;
            ListPreRender                += SendTestMail_List_ListPreRender;
            _mailTemplateRepository       = mailTemplateRepository;
            _placeholderLogic             = placeholderLogic;
            _sendPreviewEmailEventHandler = sendPreviewEmailEventHandler;
        }
Ejemplo n.º 3
0
 public MailTemplateController()
 {
     cateRepo = new EmailCategoryRepository(new SSMEntities());
     mailRepo = new MailTemplateRepository(new SSMEntities());
 }
 public MailTemplateHelper(MailTemplateRepository mailTemplateRepository, Logic.PlaceholderLogic placeholderLogic)
 {
     _mailTemplateRepository = mailTemplateRepository;
     _placeholderLogic       = placeholderLogic;
 }