Ejemplo n.º 1
0
 protected void RenderSender(TextWriter writer)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     if (Utilities.IsOnBehalfOf(this.message.Sender, this.message.From))
     {
         writer.Write(LocalizedStrings.GetHtmlEncoded(-165544498), RenderingUtilities.GetDisplaySenderName(this.message.Sender), RenderingUtilities.GetDisplaySenderName(this.message.From));
         return;
     }
     writer.Write(RenderingUtilities.GetDisplaySenderName(this.message.Sender));
 }
Ejemplo n.º 2
0
 public override void RenderSender(TextWriter writer)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     if (Utilities.IsOnBehalfOf(this.delegateWriter.ActualSender, this.delegateWriter.OriginalSender))
     {
         writer.Write(LocalizedStrings.GetHtmlEncoded(-165544498), RenderingUtilities.GetDisplaySenderName(this.delegateWriter.ActualSender), RenderingUtilities.GetDisplaySenderName(this.delegateWriter.OriginalSender));
         return;
     }
     writer.Write(RenderingUtilities.GetDisplaySenderName(this.delegateWriter.OriginalSender));
 }