Exemplo n.º 1
0
        public Model.InfoShowItem InfoObjectDeserializer(string jsonStr)
        {
            InfoShowItem temp    = new InfoShowItem();
            JToken       ja      = (JToken)JsonConvert.DeserializeObject(jsonStr);
            string       message = ja["message"].ToString() ?? "";

            temp         = JTokenToModel(ja);
            temp.message = message;
            return(temp);
        }
Exemplo n.º 2
0
 private void Ht_FileWatchEvent(object sender, CompleteEventArgs e)
 {
     oInfo = infoser.InfoObjectDeserializer(e.Node);
     this.Dispatcher.BeginInvoke(() =>
     {
         this.TBTitle.Text  = oInfo.title;
         this.TBTime.Text   = TimeHelper.TimeStamptoDateTime(oInfo.time.ToString()).ToString("MM月dd日");
         this.TBCount.Text  = oInfo.count.ToString();
         this.TBRcount.Text = oInfo.rcount.ToString();
         Uri uri            = HtmlHelper.StrToHTML(oInfo.message);
         this.wb.Navigate(uri);
     });
 }