Пример #1
0
 void publicWS_GetContentCompleted(object sender, Saas.Tools.PublicInterfaceWS.GetContentCompletedEventArgs e)
 {
     try
     {
         _currentGetDetailslist[0].NEWSCONTENT = e.Result;
     }catch (Exception ex)
     {
         SMT.SAAS.Main.CurrentContext.AppContext.logAndShow(ex.ToString());
     }
     if (OnGetNewsListCompleted != null)
     {
         OnGetNewsListCompleted(this, new GetEntityListEventArgs <NewsModel>(_currentGetDetailslist, e.Error));
     }
 }
Пример #2
0
        void publicWS_GetContentCompleted(object sender, Saas.Tools.PublicInterfaceWS.GetContentCompletedEventArgs e)
        {
            loading.Stop();
            if (e.Error == null)
            {
                if (e.Result != null)
                {
                    CacheNews.NEWSCONTENT = e.Result;
                    this.ViewModel        = CacheNews;
                    if (CacheList.Count >= _cacheCount)
                    {
                        CacheList.Clear();
                    }

                    CacheList.Add(CacheNews.NEWSID, CacheNews);
                }
            }
        }