Exemplo n.º 1
0
        public Cliente(string nome, string endereco, string cpf, Genero sexo, DateTime dataNascimento)
        {
            Nome           = nome;
            Endereco       = endereco;
            CPF            = cpf;
            Sexo           = sexo;
            DataNascimento = dataNascimento;

            if (Sexo.Equals(1))
            {
                sexo = Genero.FEMININO;
            }
            else if (Sexo.Equals(2))
            {
                sexo = Genero.MASCULINO;
            }
        }
Exemplo n.º 2
0
 public int ObtenerPulsaciones()
 {
     if (Genero.Equals("F"))
     {
         Pulsaciones = (220 - Edad) / 10;
     }
     else
     {
         Pulsaciones = (210 - Edad) / 10;
     }
     return(Pulsaciones);
 }
        public bool existeGenero(Genero oGenero)
        {
            IList <Genero> generos = new List <Genero>();

            generos = oGeneroDAO.getAll();
            foreach (Genero a in generos)
            {
                if (oGenero.Equals(a))
                {
                    return(true);
                }
            }
            return(false);
        }