private void client_GetNewsDetailsByIDCompleted(object sender, GetNewsDetailsByIDCompletedEventArgs e) { ObservableCollection <NewsModel> list = new ObservableCollection <NewsModel>(); if (e.Error == null) { if (e.Result.IsNotNull()) { list.Add(EntityToModel(e.Result.T_PF_NEWS, e.Result.T_PF_DISTRIBUTEUSERS)); _currentGetDetailslist = list; publicWS.GetContentAsync(e.Result.T_PF_NEWS.NEWSID); } //if (OnGetNewsListCompleted != null) // OnGetNewsListCompleted(this, new GetEntityListEventArgs<NewsModel>(list, e.Error)); } }
private void client_GetNewsDetailsByIDCompleted(object sender, GetNewsDetailsByIDCompletedEventArgs e) { ObservableCollection<NewsModel> list = new ObservableCollection<NewsModel>(); if (e.Error == null) { if (e.Result.IsNotNull()) { list.Add(EntityToModel(e.Result.T_PF_NEWS, e.Result.T_PF_DISTRIBUTEUSERS)); _currentGetDetailslist = list; publicWS.GetContentAsync(e.Result.T_PF_NEWS.NEWSID); } //if (OnGetNewsListCompleted != null) // OnGetNewsListCompleted(this, new GetEntityListEventArgs<NewsModel>(list, e.Error)); } }