private void txtBuscarSup_KeyUp(object sender, KeyEventArgs e) { Clases.C_Supervisor sup = new Clases.C_Supervisor(); dtgrdsup.ItemsSource = null; if (sup.BuscarSupervisores(txtBuscarSup.Text).Count > 0) { dtgrdsup.ItemsSource = sup.BuscarSupervisores(txtBuscarSup.Text); } }
//----------- TextBox Supervisor ----------------------------// private void txtBuscarSup_KeyUp(object sender, KeyEventArgs e) { Clases.C_Supervisor sup = new Clases.C_Supervisor(); List <Clases.C_Supervisor> aux = new List <Clases.C_Supervisor>(); dtgrdsup.ItemsSource = null; if (txtBuscarSup.Text != "") { aux = sup.BuscarSupervisores(txtBuscarSup.Text); if (aux.Count > 0) { dtgrdsup.ItemsSource = aux; } } }