Cada vez más cercas del faa
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
-1
@@ -92,7 +92,9 @@ namespace compabetov2
|
||||
|
||||
private void button8_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
int fila = dataGridView1.CurrentCell.RowIndex;
|
||||
int idEmpleado = int.Parse(dataGridView1.Rows[fila].Cells[0].Value.ToString());
|
||||
Empleado empleado = new Empleado();
|
||||
}
|
||||
|
||||
private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e)
|
||||
|
||||
@@ -27,9 +27,7 @@ namespace compabetov2
|
||||
private bool menosBtnPresionado = false;
|
||||
private List<Producto> productos;
|
||||
private List<TableLayoutPanel> cartas = new List<TableLayoutPanel>();
|
||||
// private List<Producto>
|
||||
private decimal total = 0;
|
||||
private Label ticketLabel;
|
||||
|
||||
|
||||
|
||||
@@ -113,6 +111,7 @@ namespace compabetov2
|
||||
btnMenos.BackColor = Color.FromArgb(33, 90, 255);
|
||||
btnMenos.Click += new EventHandler(delegate (object sender, EventArgs e)
|
||||
{
|
||||
|
||||
int numeroContador = int.Parse(contador.Text.ToString());
|
||||
|
||||
// Validar que el contador no sea 0 antes de restar
|
||||
@@ -120,6 +119,7 @@ namespace compabetov2
|
||||
{
|
||||
contador.Text = (numeroContador - 1).ToString();
|
||||
total -= producto.precion;
|
||||
label1.Text = $"Total: ${total}";
|
||||
|
||||
// Obtener información del Label id y precio
|
||||
int idProducto = int.Parse(id.Text);
|
||||
@@ -153,9 +153,7 @@ namespace compabetov2
|
||||
int numeroContador = int.Parse(contador.Text.ToString());
|
||||
contador.Text = (numeroContador + 1).ToString();
|
||||
total += producto.precion;
|
||||
|
||||
|
||||
|
||||
label1.Text = $"Total: ${total}";
|
||||
|
||||
// Obtener información del Label id y precio
|
||||
int idProducto = int.Parse(id.Text);
|
||||
|
||||
Reference in New Issue
Block a user