예제 #1
0
        public void VerifyPlayer(IVerifyUserView inForm, Player player, IPlayerRepository playerRepository, ITrainerRepository trainerRepository, ITeamRepository teamRepository)
        {
            inForm.SetPlayerValues(player);
            var result = inForm.ShowViewModal();

            if (result == DialogResult.OK)
            {
                playerRepository.Verify(player);
                _form.DisplayPlayerList(playerRepository.GetAll(), teamRepository.GetAll());
            }
            else if (result == DialogResult.No)
            {
                playerRepository.Delete(player);
            }
            _form.DisplayRegisterRequests(playerRepository.GetAll(), trainerRepository.GetAll());
        }