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]); } }
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(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Gestor clase = new Gestor(); }