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