private void btnFinalizar_Click(object sender, EventArgs e) { int j; double sub = 0; int cuantosrenglones = dataGridView1.Rows.Count; if (cuantosrenglones == 0) { MessageBox.Show("No hay articulos para totalizar"); return; } for (j = 0; j <= cuantosrenglones - 1; j++) { sub = sub + Convert.ToDouble(dataGridView1[3, j].Value); } double total = sub; dataGridView1.Rows.Add("", "", "TOTAL:", sub); btnQuitar.Enabled = false; btnPedir.Enabled = false; btnFinalizar.Enabled = false; SistemaVentas ventanaSistVentas = new SistemaVentas(); /*ventanaSistVentasdataGridView1.comboBox1.Tex; * ventanaSistVentas.Show(); * this.Hide();*/ //int f = dataGridView1.CurrentCellAddress.Y; //int c = dataGridView1.CurrentCellAddress.X; //object valorCelda = dataGridView1.Rows[f].Cells[c].Value; }
private void button1_Click(object sender, EventArgs e) { SistemaVentas venta = new SistemaVentas(); venta.Show(); this.Hide(); }
private void btnFinalizar_Click(object sender, EventArgs e) { SistemaVentas ventanaSistVentas = new SistemaVentas(); ventanaSistVentas.AgregarProducto(controlVentas1.Carrito.Ventas); ventanaSistVentas.Show(); this.Hide(); }
private void btnFinalizar_Click(object sender, EventArgs e) { SistemaVentas formVentas = new SistemaVentas(); formVentas.AgregarProducto(arrayVentas); formVentas.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { SistemaVentas venta = new SistemaVentas(); DatosProducto datos = new DatosProducto(); Busquedas busqueda = new Busquedas(); Form1 form1 = new Form1(); Form2 form2 = new Form2(); Form3 form3 = new Form3(); Factura factura = new Factura(); Portada portada = new Portada(); factura.Close(); portada.Close(); busqueda.Close(); datos.Close(); venta.Close(); form1.Close(); form2.Close(); form3.Close(); this.Hide(); }