Exemple #1
0
 public DadosPaciente(string nome, int idade, GenderType genero, DesportoType desporto, string morada, string profissao, long id)
 {
     this.Nome      = nome;
     this.Idade     = idade;
     this.Genero    = genero;
     this.Desporto  = desporto;
     this.Profissao = profissao;
     this.Morada    = morada;
     this.id        = id;
 }
Exemple #2
0
 public DadosPaciente(string nome, int idade, GenderType genero, DesportoType desporto, string morada, string profissao)
 {
     this.Nome      = nome;
     this.Idade     = idade;
     this.Genero    = genero;
     this.Desporto  = desporto;
     this.Profissao = profissao;
     this.Morada    = morada;
     this.id        = Utils.CurrentTimeMillis();
 }
Exemple #3
0
        public static List <ClasseCliente> getClientesLista(DataHelper datahelper)
        {
            List <ClasseCliente> clientes = new List <ClasseCliente>();

            foreach (DataRow dataRow in datahelper.TableClientes.Rows)
            {
                String       nome     = (String)dataRow[DataHelper.CLIENTE_NOME];
                decimal      idade    = decimal.Parse((String)dataRow[DataHelper.CLIENTE_IDADE]);
                double       altura   = double.Parse((String)dataRow[DataHelper.CLIENTE_ALTURA]);
                float        peso     = float.Parse((String)dataRow[DataHelper.CLIENTE_PESO]);
                GenderType   genero   = parseGender((String)dataRow[DataHelper.CLIENTE_GENERO]);
                DesportoType desporto = parseDesporto((String)dataRow[DataHelper.CLIENTE_DESPORTO]);
                double       imc      = double.Parse((String)dataRow[DataHelper.CLIENTE_IMC]);
                long         id       = long.Parse((String)dataRow[DataHelper.CLIENTE_ID]);
                GenderType   gender   = parseGender((String)dataRow[DataHelper.CLIENTE_GENERO]);

                clientes.Add(new ClasseCliente(nome, idade, altura, peso, genero, desporto, imc, id));
            }

            return(clientes);
        }
Exemple #4
0
 public ClasseCliente(string nome, decimal idade, double altura, float peso, GenderType genero, DesportoType desporto, double imc, long id)
 {
     this.Nome     = nome;
     this.Idade    = idade;
     this.Altura   = altura;
     this.Peso     = peso;
     this.Genero   = genero;
     this.Desporto = desporto;
     this.Imc      = imc;
     this.Id       = id;
 }
Exemple #5
0
 public ClasseCliente(string nome, decimal idade, double altura, float peso, GenderType genero, DesportoType desporto, double imc)
 {
     this.Nome     = nome;
     this.Idade    = idade;
     this.Altura   = altura;
     this.Peso     = peso;
     this.Genero   = genero;
     this.Desporto = desporto;
     this.Imc      = imc;
     this.Id       = Utils.CurrentTimeMillis();
 }