示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            FrmAgregarVenta fav = new FrmAgregarVenta();

            fav.ShowDialog();
            dgvListaVentas.DataSource = SaleDAO.getAll();
        }
示例#2
0
 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();
     }
 }
示例#3
0
 private void checkBox2_CheckedChanged(object sender, EventArgs e)
 {
     if (chbBuscar.Checked)
     {
         pnlContenedorBuscar.Visible = true;
     }
     else
     {
         pnlContenedorBuscar.Visible = false;
         dgvListaVentas.DataSource   = SaleDAO.getAll();
     }
 }
示例#4
0
 private void FrmCatalagoVentas_Load(object sender, EventArgs e)
 {
     dgvListaVentas.DataSource = SaleDAO.getAll();
 }