Example #1
0
 private void dataGridView_GestionarVentas_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     int fila = e.RowIndex;
     NuevaVenta nv = new NuevaVenta(Convert.ToInt32(dataGridView_GestionarVentas.Rows[fila].Cells[0].Value.ToString()));
     nv.ShowDialog();
 }
Example #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     NuevaVenta nv = new NuevaVenta();
     if (nv.ShowDialog() == DialogResult.OK)
         GestionarVentas_Load(null, null);
 }