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(); }
private void btnMostrarNotebooks_Click(object sender, EventArgs e) { dgv.DataSource = null; dgv.DataSource = Notebook.Buscar(); lblTitulo.Text = "notebooks"; }
private void Buscar(string buscado) { dgv.DataSource = null; dgv.DataSource = Notebook.Buscar(buscado); }