示例#1
0
 private void adopcion_TextChanged(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(adopcion.Text))
     {
         dataGridView1.DataSource = Consultas.buscarxRef("adopcion", "COMPLETO", adopcion.Text);
     }
     else
     {
         dataGridView1.DataSource = Consultas.buscar("adopcion");
     }
 }
示例#2
0
 private void rescate_TextChanged(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(rescate.Text))
     {
         dataGridView1.DataSource = Consultas.buscarxRef("rescate", "ID", rescate.Text);
     }
     else
     {
         dataGridView1.DataSource = Consultas.buscar("rescate");
     }
 }
示例#3
0
 private void buscar_TextChanged(object sender, EventArgs e)
 {
     mascota.DataSource = null;
     if (!string.IsNullOrEmpty(buscar.Text))
     {
         mascota.DisplayMember = "COMPLETO";
         mascota.ValueMember   = "COMPLETO";
         mascota.DataSource    = Consultas.buscarxRef("mascotas", "COMPLETO", buscar.Text);
     }
     else
     {
         mascota.DisplayMember = "COMPLETO";
         mascota.ValueMember   = "COMPLETO";
         mascota.DataSource    = Consultas.buscar("mascotas");
     }
 }
示例#4
0
 private void buscar_TextChanged(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(buscar.Text))
     {
         opciones.DataSource    = null;
         opciones.DisplayMember = "COMPLETO";
         opciones.ValueMember   = "COMPLETO";
         opciones.DataSource    = Consultas.buscarxRef("duenio", "COMPLETO", buscar.Text);
     }
     else
     {
         opciones.DataSource    = null;
         opciones.DisplayMember = "COMPLETO";
         opciones.ValueMember   = "COMPLETO";
         opciones.DataSource    = Consultas.buscar("duenio");
     }
 }