public CopyAnnotationTextTemplate(RawAnnotation annotation)
        {
            this.TextAlignment = TextAlignment.Left;
            BlockCollection blocks = this.Blocks;

            Inline[] inlineArray1 = new Inline[1];
            Inline[] inlineArray2 = inlineArray1;
            int      index        = 0;
            Run      run1         = new Run();

            run1.FontWeight = FontWeights.Bold;
            run1.Text       = CopyAnnotationTextTemplate.GenerateHeaderText(annotation);
            Run run2 = run1;

            inlineArray2[index] = (Inline)run2;
            Paragraph paragraph = this.CreateParagraph((IEnumerable <Inline>)inlineArray1);

            blocks.Add((Block)paragraph);
            this.Blocks.AddRange((IEnumerable)this.BreakTextIntoParagraphs(annotation.Text));
        }
 private static string GenerateHeaderText(RawAnnotation annotation)
 {
     return(string.Format((IFormatProvider)CultureInfo.CurrentCulture, "{0} ({1}) {2}:", (object)annotation.Author, (object)annotation.SerialNumber, (object)annotation.Timestamp.ToLocalTime().ToString("g", (IFormatProvider)CultureInfo.CurrentCulture)));
 }