Example #1
0
 public void ModifySelectedPlayer(PlayerVM player)
 {
     player.FirstName = PlayerName;
     player.LastName  = PlayerLastName;
     player.Age       = PlayerAge;
     player.Weight    = PlayerWeight;
 }
Example #2
0
 public bool CanModifySelectedPlayer(PlayerVM player)
 {
     if (player == null)
     {
         return(false);
     }
     return(true);
 }
Example #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);
     }
 }
Example #4
0
 public void DeleteSelectedPlayer(PlayerVM player)
 {
     Players.Remove(player);
 }