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; }
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; } }