Beispiel #1
0
 void client_GetFeedsCompleted(object sender, GetFeedsCompletedEventArgs e)
 {
     Request.Invoke(() =>
     {
         if (e.Result.Count != 0)
         {
             this.Feeds = e.Result;
             this.News = this.Feeds.FirstOrDefault().News;
             this.SelectedFeed = this.Feeds.FirstOrDefault();
             this.SelectedNews = this.News.FirstOrDefault();
         }
         IsBusyModel = false;
     });
 }
 void FeedsClient_GetFeedsCompleted(object sender, GetFeedsCompletedEventArgs e)
 {
     if (!ErrorDataModel.Instance.EvalResponse(e)) return;
     if (!ErrorDataModel.Instance.EvalWebResult(e.Result)) return;
     Channels = e.Result.Value.ToList();
 }
 void FeedsClient_GetFeedsCompleted(object sender, GetFeedsCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result.ErrorCode == WebResult.ErrorCodeList.SUCCESS)
         {
             Channels = e.Result.Value.ToList();
         }
     }
 }