Example #1
0
 public TextEntry Load(Stream input)
 {
     using (var br = new BinaryReaderX(input, true))
     {
         // Read
         _content = br.ReadType <MSGContent>();
         return(new TextEntry
         {
             Name = "content",
             EditedText = _content.Content,
             OriginalText = _content.Content
         });
     }
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="input"></param>
 public MSG(Stream input)
 {
     using (var br = new BinaryReaderX(input, true))
     {
         // Read
         _content = br.ReadType <MSGContent>();
         Entries  = new List <TextEntry>
         {
             new TextEntry
             {
                 Name         = "content",
                 EditedText   = _content.Content,
                 OriginalText = _content.Content
             }
         };
     }
 }