corregi bug del desplazamiento

This commit is contained in:
Michael Robles
2024-06-18 16:51:43 -07:00
22 changed files with 302 additions and 57 deletions
+6 -4
View File
@@ -75,7 +75,9 @@ namespace compabetov2
private void FlowLayoutPanel3_MouseUp(object sender, MouseEventArgs e)
{
flowLayoutPanel3.Capture = false;
lastPoint = new Point(e.X, e.Y);
flowLayoutPanel3.Capture = true;
}
@@ -777,7 +779,7 @@ namespace compabetov2
{
Cuenta ventaModel = new Cuenta(total);
datosCuenta datoCuenta = new datosCuenta(ventaModel, detallesCuenta, this);
datosCuenta datoCuenta = new datosCuenta(ventaModel, detallesCuenta,importes, this);
datoCuenta.Show();
}
@@ -837,7 +839,7 @@ namespace compabetov2
Envio envio = new Envio(-1, DateTime.Now.ToString(), "", "", responsable, "", "", total);
if (detallesEnvio.Count > 0)
{
datosEnvio datosEnvio = new datosEnvio(envio, detallesEnvio, this);
datosEnvio datosEnvio = new datosEnvio(envio, detallesEnvio,importes ,this);
datosEnvio.Show();
}
else
@@ -879,7 +881,7 @@ namespace compabetov2
decimal totalImporte = 0;
foreach(DetalleImporte importe in importes)
{
totalImporte += importe.precioImporte * importe.catidad;
totalImporte += importe.precioImporte * importe.cantidad;
}
total += totalImporte;
label1.Text = $"Total: ${total}";