Пример #1
0
        public void PointExchangeRuleList(
            PointExchangeRuleListHeadFootItemTemplate head
            , PointExchangeRuleListHeadFootItemTemplate foot
            , PointExchangeRuleListItemTemplate item
            )
        {
            PointExchangeRuleCollection pointExchangeRules = AllSettings.Current.PointSettings.PointExchangeRules;
            int i          = 0;
            int totalCount = pointExchangeRules.Count;

            head(totalCount > 0, totalCount);
            foreach (PointExchangeRule rule in pointExchangeRules)
            {
                if (rule.UserPoint.Enable == false || rule.TargetUserPoint.Enable == false)
                {
                    continue;
                }

                PointExchangeRuleListParams param = new PointExchangeRuleListParams(rule);
                item(param, i++);
            }
            foot(totalCount > 0, totalCount);
        }
Пример #2
0
        public void PointExchangeRuleList(
              PointExchangeRuleListHeadFootItemTemplate head
            , PointExchangeRuleListHeadFootItemTemplate foot
            , PointExchangeRuleListItemTemplate item
            )
        {
            PointExchangeRuleCollection pointExchangeRules = AllSettings.Current.PointSettings.PointExchangeRules;
            int i = 0;
            int totalCount = pointExchangeRules.Count;
            head(totalCount > 0, totalCount);
            foreach (PointExchangeRule rule in pointExchangeRules)
            {
                if (rule.UserPoint.Enable == false || rule.TargetUserPoint.Enable == false)
                    continue;

                PointExchangeRuleListParams param = new PointExchangeRuleListParams(rule);
                item(param, i++);
            }
            foot(totalCount > 0, totalCount);
        }