private void OnFetchWeiboUrl(WeiboUrl obj) { DispatcherHelper.UIDispatcher.BeginInvoke(DispatcherPriority.SystemIdle, (Action)(() => { if(!Medias.Any(item=>item.data.url_short.Equals(obj.data.url_short))) Medias.Add(obj); })); }
public WeiboStatus() { url = new WeiboUrl(); show_editor = new RelayCommand(execute_show_editor); show_comments = new RelayCommand<IWeiboAccessToken>(execute_show_comments); show_retweeted_comments = new RelayCommand<IWeiboAccessToken>(execute_show_retweeted_comments); }