예제 #1
0
 private void FormNotebook_Load(object sender, EventArgs e)
 {
     dgv.DataSource      = null;
     dgv.DataSource      = Notebook.Buscar();
     cmbAlm.DataSource   = Almacenamiento.Buscar();
     cmbCpu.DataSource   = Procesador.Buscar();
     cmbMarca.DataSource = Marca.Buscar();
 }
예제 #2
0
 private void btnMostrarNotebooks_Click(object sender, EventArgs e)
 {
     dgv.DataSource = null;
     dgv.DataSource = Notebook.Buscar();
     lblTitulo.Text = "notebooks";
 }
예제 #3
0
 private void Buscar(string buscado)
 {
     dgv.DataSource = null;
     dgv.DataSource = Notebook.Buscar(buscado);
 }