示例#1
0
 private void execute_show_comments(IWeiboAccessToken o)
 {
     Debug.Assert(o != null);
     comments = comments == null ? new CommentsViewModel(id) : null;
     if (comments == null || (retweeted_status != null ? retweeted_status.id : 0) != comments.id )
     {
         comments = new CommentsViewModel(id);
         comments.initialize(o.get());
     }
     else
         comments = null;
 }
示例#2
0
 void execute_show_retweeted_comments(IWeiboAccessToken o)
 {
     Debug.Assert(o != null && retweeted_status != null);
     if(comments == null || comments.id != retweeted_status.id)
     {
         comments = new CommentsViewModel(retweeted_status.id);
         comments.initialize(o.get());
     }else
     {
         comments = null;
     }
 }