private void gvListaDeExames_CellClick(object sender, DataGridViewCellEventArgs e) { int id = Convert.ToInt32(gvListaDeExames.CurrentRow.Cells["Código do Atendimento"].Value); Atendimento a = new Atendimento(); a = a.Buscar(id); frmAtendimentoAlterar formAlterar = new frmAtendimentoAlterar(a); formAlterar.Show(); }
private void btnBuscarAtendimento_Click(object sender, EventArgs e) { Atendimento a = new Atendimento(); gvListaDeExames.DataSource = a.FormatarParaExibir(a.Buscar(Convert.ToDateTime(dtpDataInicio.Value), Convert.ToDateTime(dtpDataFim.Value))); }
private void btnBuscarTodos_Click(object sender, EventArgs e) { Atendimento a = new Atendimento(); gvListaDeExames.DataSource = a.FormatarParaExibir(a.Buscar()); }