Пример #1
0
        private void PlayerTap(object selectPlayer)
        {
            if (_selectedItem == null) return;

            _selectPlayer = (Player) selectPlayer;
            _playerMenu.IsOpen = true;
        }
Пример #2
0
        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();
        }
Пример #3
0
 public EditPlayerViewModel()
 {
     _selectPlayer = (Player) _navigationService.GetLastNavigationData();
     NamePlayer = _selectPlayer.Name;
 }
Пример #4
0
 public Participant(Player player, Tournament tour)
 {
     ParticipantPlayer = player;
     ParticipantTour = tour; 
 }