예제 #1
0
        public void InscreverParticipante(Context activity)
        {
            var informacoesInseridas = InformacoesParaValidar();

            if (!Validacao.ValidarCadastroParticipante(activity, informacoesInseridas))
            {
                return;
            }
            var participante = new Participante(CriarDicionarioParaMontarParticipante());
            var codigoParticipanteInscrito = participante.Inscrever();

            if (codigoParticipanteInscrito == "-1")
            {
                Mensagens.MensagemErroCadastro(this);
                return;
            }

            participante.CodigoParticipante = codigoParticipanteInscrito;
            IniciarEscolherFoto(this, participante);
            _stopwatch.Stop();
            Mensagens.MensagemCadastroBemSucedido(this);
            Finish();
        }