private void frmFichaAtendimento_Load(object sender, EventArgs e) { atendimento = new Atendimento(); paciente = new Paciente(); txHora.Text = DateTime.Now.ToShortTimeString(); txSolicitante.Text = NomeSolicitante; txDataFicha.Text = DateTime.Now.ToShortDateString(); txNumeroEmpenho.Text = atendimento.RetornaULtimoEmpenho().ToString().PadLeft(5, '0'); List<Paciente> ListaPacientesCadastrados = paciente.RetornaListaPacientesCadastrados(); txNomePaciente.AutoCompleteCustomSource.Clear(); foreach (var item in ListaPacientesCadastrados) { txNomePaciente.AutoCompleteCustomSource.Add(item.NomePaciente); } }
public List<Paciente> RetornaListadePacientesCadastrados() { //criar rotina... Paciente p = new Paciente(); p.NomePaciente = "Luis Henrique Ribeiro"; p.Idade = 30; p.IDPaciente = 1; p.Historico = "Acamado, TCP, DDLL"; CEP _cep = new CEP(); _cep._CEP = 32604624; p.Cep = _cep; p.Complemento = "201"; p.Numero = 275; p.PontoReferencia = "Supermercado bh"; p.Sexo = 'M'; p.Telefone1 = "35967866"; List<Paciente> lista = new List<Paciente>(); lista.Add(p); return lista; }