Пример #1
0
 public void Edit(Footballer fballer)
 {
     Name    = fballer.Name.ToUpper();
     Surname = fballer.Surname.ToUpper();
     Age     = fballer.Age;
     Weight  = fballer.Weight;
 }
Пример #2
0
 public bool AlreadyExist(Footballer fballer)
 {
     foreach (Footballer member in SquadMembers)
     {
         if (member.Name == fballer.Name && member.Surname == fballer.Surname && member.Age == fballer.Age && member.Weight == fballer.Weight)
         {
             return(true);
         }
     }
     return(false);
 }
Пример #3
0
 public void Edit(Footballer fballer, int index)
 {
     SquadMembers[index] = fballer;
 }
Пример #4
0
 public void Add(Footballer fballer)
 {
     SquadMembers.Add(fballer);
 }