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)); } }
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); } } }