Ejemplo n.º 1
0
        void client_GetNewsModelByIDCompleted(object sender, GetNewsModelByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                if (e.Result != null)
                {
                    publicWS.GetContentAsync(e.Result.NEWSID);

                    CacheNews = e.Result;
                    // CacheList.Add(e.Result.NEWSID, e.Result);
                }
            }
        }
Ejemplo n.º 2
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));
            }
        }