Ejemplo n.º 1
0
 private void FormatContent(MSGContent msg)
 {
     //msg.Content = FontTagRegex.Replace(msg.Content, "")
     //	.Replace(" ", "")
     //
     msg.Content = FontTagRegex.Replace(msg.Content, "");
     msg.Content = WebUtility.HtmlDecode(msg.Content)
                   .Trim()
                   .Replace("<br>", "");
     msg.Content = IMGTagRegex.Replace(msg.Content, ImgTagEvel);
 }
Ejemplo n.º 2
0
        private void ParseMessageTR(string tr)
        {
            Match match = MessageContentRegex.Match(tr);

            current = new MSGContent();

            current.Date    = currentDate.Add(TimeSpan.Parse(match.Groups["time"].Value));
            current.Content = match.Groups["content"].Value;

            if (tr.StartsWith("<tr><td><div style=color:#42B475"))
            {
                current.IsBySelf = true;
            }
        }
Ejemplo n.º 3
0
 public MessageDB(MSGContent msg)
 {
     this.InjectFrom(msg);
 }