private void button_agregar_Click(object sender, EventArgs e) { try { FormComandaTemporal temporal = new FormComandaTemporal(); int nro_mesa = temporal.valor_mesa(); foreach (DataGridViewRow row in dataGridView_lista_producto_compuesto.Rows) { int mesa = nro_mesa; int id_mozo = Convert.ToInt32(textBox_mozo.ToString()); int id_productocompuesto = Convert.ToInt32(row.Cells[0].Value); Pedido_Neg.guardarTemporal2(1, mesa, id_mozo, id_productocompuesto, 0); } } catch (Exception ex) { Funciones.mError(this, "Error al guardar" + ex); } }
private void button6_Click(object sender, EventArgs e) { FormComandaTemporal temporal = new FormComandaTemporal(); temporal.Nro_Mesa(button_mesa_6.Text.ToString()); }