Ejemplo n.º 1
0
        private void btnPedido_Click(object sender, EventArgs e)
        {
            btnPedido.Enabled = false;
            btnCorte.Enabled  = true;
            List <DetallePedido> lista = Gestor.tomarPedido(dataGridView1.CurrentRow.DataBoundItem as Pedido);

            for (int i = 0; i < lista.Count; i++)
            {
                detallePedidoBindingSource.Add(lista[i]);
            }
        }
Ejemplo n.º 2
0
        private void btnCorte_Click(object sender, EventArgs e)
        {
            btnCorte.Enabled        = false;
            btnAgregarCorte.Enabled = true;
            List <CorteVacuno> lista = Gestor.CortesVacuno(dgvCortesSolicitados.CurrentRow.DataBoundItem as DetallePedido);

            for (int i = 0; i < lista.Count; i++)
            {
                corteVacunoBindingSource.Add(lista[i]);
            }
            semaforoCortes();
        }
Ejemplo n.º 3
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Gestor clase = new Gestor();
 }