Пример #1
0
        public List <TeamPO> TeamsMap(List <TeamDAO> TeamListToMap)
        {
            List <TeamPO> TeamListToReturn = new List <TeamPO>();

            foreach (TeamDAO TeamToMap in TeamListToMap)
            {
                TeamPO TeamToList = new TeamPO();
                TeamToList.TeamID        = TeamToMap.TeamID;
                TeamToList.TeamName      = TeamToMap.TeamName;
                TeamToList.Creator       = TeamToMap.Creator;
                TeamToList.CreatorID     = TeamToMap.CreatorID;
                TeamToList.FirstPokemon  = TeamToMap.FirstPokemon;
                TeamToList.FirstPkID     = TeamToMap.FirstPkID;
                TeamToList.SecondPokemon = TeamToMap.SecondPokemon;
                TeamToList.SecondPkID    = TeamToMap.SecondPkID;
                TeamToList.ThirdPokemon  = TeamToMap.ThirdPokemon;
                TeamToList.ThirdPkID     = TeamToMap.ThirdPkID;
                TeamToList.FourthPokemon = TeamToMap.FourthPokemon;
                TeamToList.FourthPkID    = TeamToMap.FourthPkID;
                TeamToList.FifthPokemon  = TeamToMap.FifthPokemon;
                TeamToList.FifthPkID     = TeamToMap.FifthPkID;
                TeamToList.SixthPokemon  = TeamToMap.SixthPokemon;
                TeamToList.SixthPkID     = TeamToMap.SixthPkID;
                TeamListToReturn.Add(TeamToList);
            }
            return(TeamListToReturn);
        }
Пример #2
0
        public TeamPO SelectTeamMap(TeamDAO TeamToCreate)
        {
            TeamPO TeamToList = new TeamPO();

            TeamToList.TeamID        = TeamToCreate.TeamID;
            TeamToList.TeamName      = TeamToCreate.TeamName;
            TeamToList.Creator       = TeamToCreate.Creator;
            TeamToList.CreatorID     = TeamToCreate.CreatorID;
            TeamToList.FirstPokemon  = TeamToCreate.FirstPokemon;
            TeamToList.FirstPkID     = TeamToCreate.FirstPkID;
            TeamToList.Pk1Type1      = TeamToCreate.Pk1Type1;
            TeamToList.Pk1Type1Name  = TeamToCreate.Pk1Type1Name;
            TeamToList.Pk1Type2      = TeamToCreate.Pk1Type2;
            TeamToList.Pk1Type2Name  = TeamToCreate.Pk1Type2Name;
            TeamToList.SecondPokemon = TeamToCreate.SecondPokemon;
            TeamToList.SecondPkID    = TeamToCreate.SecondPkID;
            TeamToList.Pk2Type1      = TeamToCreate.Pk2Type1;
            TeamToList.Pk2Type1Name  = TeamToCreate.Pk2Type1Name;
            TeamToList.Pk2Type2      = TeamToCreate.Pk2Type2;
            TeamToList.Pk2Type2Name  = TeamToCreate.Pk2Type2Name;
            TeamToList.ThirdPokemon  = TeamToCreate.ThirdPokemon;
            TeamToList.ThirdPkID     = TeamToCreate.ThirdPkID;
            TeamToList.Pk3Type1      = TeamToCreate.Pk3Type1;
            TeamToList.Pk3Type1Name  = TeamToCreate.Pk3Type1Name;
            TeamToList.Pk3Type2      = TeamToCreate.Pk3Type2;
            TeamToList.Pk3Type2Name  = TeamToCreate.Pk3Type2Name;
            TeamToList.FourthPokemon = TeamToCreate.FourthPokemon;
            TeamToList.FourthPkID    = TeamToCreate.FourthPkID;
            TeamToList.Pk4Type1      = TeamToCreate.Pk4Type1;
            TeamToList.Pk4Type1Name  = TeamToCreate.Pk4Type1Name;
            TeamToList.Pk4Type2      = TeamToCreate.Pk4Type2;
            TeamToList.Pk4Type2Name  = TeamToCreate.Pk4Type2Name;
            TeamToList.FifthPokemon  = TeamToCreate.FifthPokemon;
            TeamToList.FifthPkID     = TeamToCreate.FifthPkID;
            TeamToList.Pk5Type1      = TeamToCreate.Pk5Type1;
            TeamToList.Pk5Type1Name  = TeamToCreate.Pk5Type1Name;
            TeamToList.Pk5Type2      = TeamToCreate.Pk5Type2;
            TeamToList.Pk5Type2Name  = TeamToCreate.Pk5Type2Name;
            TeamToList.SixthPokemon  = TeamToCreate.SixthPokemon;
            TeamToList.SixthPkID     = TeamToCreate.SixthPkID;
            TeamToList.Pk6Type1      = TeamToCreate.Pk6Type1;
            TeamToList.Pk6Type1Name  = TeamToCreate.Pk6Type1Name;
            TeamToList.Pk6Type2      = TeamToCreate.Pk6Type2;
            TeamToList.Pk6Type2Name  = TeamToCreate.Pk6Type2Name;
            return(TeamToList);
        }
Пример #3
0
        public List <int> TypeIDMap(TeamPO TypeIDsToMap)
        {
            List <int> IDsToMap = new List <int>();

            IDsToMap.Add(TypeIDsToMap.Pk1Type1);
            IDsToMap.Add(TypeIDsToMap.Pk1Type2);
            IDsToMap.Add(TypeIDsToMap.Pk2Type1);
            IDsToMap.Add(TypeIDsToMap.Pk2Type2);
            IDsToMap.Add(TypeIDsToMap.Pk3Type1);
            IDsToMap.Add(TypeIDsToMap.Pk3Type2);
            IDsToMap.Add(TypeIDsToMap.Pk4Type1);
            IDsToMap.Add(TypeIDsToMap.Pk4Type2);
            IDsToMap.Add(TypeIDsToMap.Pk5Type1);
            IDsToMap.Add(TypeIDsToMap.Pk5Type2);
            IDsToMap.Add(TypeIDsToMap.Pk6Type1);
            IDsToMap.Add(TypeIDsToMap.Pk6Type2);
            return(IDsToMap);
        }
Пример #4
0
        public TeamDAO SingleTeamMap(TeamPO TeamToCreate)
        {
            TeamDAO TeamToList = new TeamDAO();

            TeamToList.TeamID        = TeamToCreate.TeamID;
            TeamToList.TeamName      = TeamToCreate.TeamName;
            TeamToList.Creator       = TeamToCreate.Creator;
            TeamToList.CreatorID     = TeamToCreate.CreatorID;
            TeamToList.FirstPokemon  = TeamToCreate.FirstPokemon;
            TeamToList.FirstPkID     = TeamToCreate.FirstPkID;
            TeamToList.SecondPokemon = TeamToCreate.SecondPokemon;
            TeamToList.SecondPkID    = TeamToCreate.SecondPkID;
            TeamToList.ThirdPokemon  = TeamToCreate.ThirdPokemon;
            TeamToList.ThirdPkID     = TeamToCreate.ThirdPkID;
            TeamToList.FourthPokemon = TeamToCreate.FourthPokemon;
            TeamToList.FourthPkID    = TeamToCreate.FourthPkID;
            TeamToList.FifthPokemon  = TeamToCreate.FifthPokemon;
            TeamToList.FifthPkID     = TeamToCreate.FifthPkID;
            TeamToList.SixthPokemon  = TeamToCreate.SixthPokemon;
            TeamToList.SixthPkID     = TeamToCreate.SixthPkID;
            return(TeamToList);
        }
Пример #5
0
 public TeamViewModel()
 {
     SingleTeam = new TeamPO();
     TeamList   = new List <TeamPO>();
 }