コード例 #1
0
        public override bool RefreshFromServer()
        {
            ServiceFunctionResultOfListOfAplexScreenField result = GlobalDataCache.Instance.Service.GetAllAplexScreenField(
                false,
                GlobalDataCache.Instance.CurrentUser);

            if (ServiceResultHandler.HandleServiceResult(result))
            {
                return(true);
            }
            Clear();
            result.Contents.ToList().ForEach(p => _entities.Add(p.AplexScreenFieldId, p));
            return(false);
        }
コード例 #2
0
        public bool RefreshFromServer(Guid aplexAcreenId)
        {
            ServiceFunctionResultOfListOfAplexScreenField result = GlobalDataCache.Instance.Service.GetAplexScreenFieldByField(
                EntityReader <AplexScreenField> .GetPropertyName(p => p.AplexScreenId, false),
                aplexAcreenId,
                false,
                GlobalDataCache.Instance.CurrentUser);

            if (ServiceResultHandler.HandleServiceResult(result))
            {
                return(true);
            }
            Clear();
            result.Contents.ToList().ForEach(p => _entities.Add(p.AplexScreenFieldId, p));
            return(false);
        }