private void GenerarPedido()
 {
     try
     {
         FastFood.GenerarPedido();
         cantVentas++;
         Thread.Sleep(5000);
         if (cantVentas < 20)
         {
             this.GenerarPedido();
         }
     }
     catch (ThreadAbortException ex)
     {
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btnGenerarPedido_Click(object sender, EventArgs e)
 {
     FastFood.GenerarPedido();
 }