private void button3_Click(object sender, EventArgs e) { FrmAgregarVenta fav = new FrmAgregarVenta(); fav.ShowDialog(); dgvListaVentas.DataSource = SaleDAO.getAll(); }
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 5) { FrmVerVenta fvv = new FrmVerVenta(int.Parse(dgvListaVentas.Rows[e.RowIndex].Cells[0].Value + "")); fvv.ShowDialog(); dgvListaVentas.DataSource = SaleDAO.getAll(); } }
private void checkBox2_CheckedChanged(object sender, EventArgs e) { if (chbBuscar.Checked) { pnlContenedorBuscar.Visible = true; } else { pnlContenedorBuscar.Visible = false; dgvListaVentas.DataSource = SaleDAO.getAll(); } }
private void FrmCatalagoVentas_Load(object sender, EventArgs e) { dgvListaVentas.DataSource = SaleDAO.getAll(); }