private void PlayerTap(object selectPlayer) { if (_selectedItem == null) return; _selectPlayer = (Player) selectPlayer; _playerMenu.IsOpen = true; }
protected override void Save() { var t = NamePlayer.Trim(); if (t.Equals(string.Empty)) { IsChanged = false; Message.ShowWithOneButoon(AppResources.SpecifyName); return; } var addedPlayer = new Player {Name = NamePlayer}; _players.Add(addedPlayer); addedPlayer.InsertInDataBase(); _navigationService.GoBack(); }
public EditPlayerViewModel() { _selectPlayer = (Player) _navigationService.GetLastNavigationData(); NamePlayer = _selectPlayer.Name; }
public Participant(Player player, Tournament tour) { ParticipantPlayer = player; ParticipantTour = tour; }