public void SelectMessage(long idRecipientMessage)
        {
            if (UserContext.isAnonymous)
            {
                SessionTimeout(View.CurrentIdCommunity, View.PreloadSelectedTab);
            }
            else
            {
                MailRecipient recipient = CurrentManager.Get <MailRecipient>(idRecipientMessage);
                lm.Comol.Core.DomainModel.Languages.ItemObjectTranslation translation = new lm.Comol.Core.DomainModel.Languages.ItemObjectTranslation();
                if (recipient != null)
                {
                    if (recipient.Item != null)
                    {
                        translation.Body    = recipient.Item.Body;
                        translation.Subject = recipient.Item.Subject;
                    }
                    View.DisplayMessagePreview(false, recipient.LanguageCode, translation, new List <String>(), recipient.Message.MailSettings, View.SelectedFilter.IdCommunity, View.CurrentModuleObject);
                }
                else
                {
                    switch (View.CurrentDisplayBy)
                    {
                    case DisplayItems.ByRecipient:
                        LoadRecipients(View.SelectedFilter, View.Pager.PageIndex, View.PageSize, false);
                        break;

                    case DisplayItems.ByMessage:
                        break;
                    }
                }
            }
        }
Beispiel #2
0
 public dtoObjectTranslation()
 {
     Translation = new lm.Comol.Core.DomainModel.Languages.ItemObjectTranslation();
 }