Esempio n. 1
0
        public void MissionBaseList(
            MissionBasesListHeadFootTemplate head
            , MissionBasesListHeadFootTemplate foot
            , MissionBasesListItemTemplate item)
        {
            List <MissionBase> missions = MissionBO.Instance.GetAllMissionBases();

            int i = 0;

            int total = missions.Count;

            head(total > 0, total);
            foreach (MissionBase missionBase in missions)
            {
                MissionBasesListItemParams param = new MissionBasesListItemParams(missionBase);
                item(param, i++);
            }
            foot(total > 0, total);
        }
Esempio n. 2
0
        public void MissionBaseList(
              MissionBasesListHeadFootTemplate head
            , MissionBasesListHeadFootTemplate foot
            , MissionBasesListItemTemplate item)
        {
            List<MissionBase> missions = MissionBO.Instance.GetAllMissionBases();

            int i = 0;

            int total = missions.Count;

            head(total > 0, total);
            foreach (MissionBase missionBase in missions)
            {
                MissionBasesListItemParams param = new MissionBasesListItemParams(missionBase);
                item(param, i++);
            }
            foot(total > 0, total);
        }