Esempio n. 1
0
 private void txtNomeDisciplina_KeyPress(object sender, KeyPressEventArgs e)
 {
     if ((Keys)e.KeyChar == Keys.Enter)
     {
         dd = ClsDisciplinas.pesquisar(txtNomeDisciplina.Text);
         dgvDisciplinas.DataSource = dd;
         e.Handled = true;
     }
 }
Esempio n. 2
0
 private void btnPesquisarDisciplina_Click(object sender, EventArgs e)
 {
     dd = ClsDisciplinas.pesquisar(txtNomeDisciplina.Text);
     dgvDisciplinas.DataSource = dd;
 }