Exemplo n.º 1
0
 private void PopularThreadList_ItemClick(object sender, ItemClickEventArgs e)
 {
     var threadEntity = e.ClickedItem as PopularThreadsTrendsEntity;
     var thread = new ForumThreadEntity();
     if (threadEntity == null) return;
     thread.ParseFromPopularThread(threadEntity.Title, threadEntity.Id);
     string jsonObjectString = JsonConvert.SerializeObject(thread);
     Frame.Navigate(typeof (ThreadPage), jsonObjectString);
 }
Exemplo n.º 2
0
 private void PopularThreadList_ItemClick(object sender, ItemClickEventArgs e)
 {
     var threadEntity = e.ClickedItem as PopularThreadsTrendsEntity;
     var thread = new ForumThreadEntity();
     if (threadEntity != null)
     {
         string title = string.IsNullOrEmpty(threadEntity.Title) ? string.Empty : threadEntity.Title;
         thread.ParseFromPopularThread(threadEntity.Title, threadEntity.Id);
         Frame.Navigate(typeof (ThreadPage), thread);
     }
 }