コード例 #1
0
 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);
     }));
 }
コード例 #2
0
ファイル: WeiboStatus.cs プロジェクト: heartszhang/WeiZhi3
 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);
 }