示例#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
         });
     }
 }
示例#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
             }
         };
     }
 }