Ejemplo n.º 1
0
 public void ModifySelectedPlayer(PlayerVM player)
 {
     player.FirstName = PlayerName;
     player.LastName  = PlayerLastName;
     player.Age       = PlayerAge;
     player.Weight    = PlayerWeight;
 }
Ejemplo n.º 2
0
 public bool CanModifySelectedPlayer(PlayerVM player)
 {
     if (player == null)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 3
0
 public void CreatePlayer()
 {
     if (PlayerName != "Podaj imię" & PlayerLastName != "Podaj nazwisko")
     {
         PlayerVM newPlayer = new PlayerVM(PlayerName, PlayerLastName, PlayerAge, PlayerWeight);
         Players.Add(newPlayer);
         CurrentlySelectedPlayer = new PlayerVM("Podaj imię", "Podaj nazwisko", 0, 0);
     }
 }
Ejemplo n.º 4
0
 public void DeleteSelectedPlayer(PlayerVM player)
 {
     Players.Remove(player);
 }