/// <summary>
 /// Copies the contents of the Z00_BURO_PATable to the specified one-dimensional array starting at the specified index in the target array.
 /// </summary>
 /// <param name="array">The one-dimensional destination array.</param>           
 /// <param name="index">The zero-based index in array at which copying begins.</param>           
 public void CopyTo(Z00_BURO_PA[] array, int index)
 {
     List.CopyTo(array, index);
 }
 /// <summary>
 /// Adds a Z00_BURO_PA to the end of the collection.
 /// </summary>
 /// <param name="value">The Z00_BURO_PA to be added to the end of the collection.</param>
 /// <returns>The index of the newZ00_BURO_PA.</returns>
 public int Add(Z00_BURO_PA value)
 {
     return List.Add(value);
 }
 /// <summary>
 /// Determines wheter an element is in the collection.
 /// </summary>
 /// <param name="value">The Z00_BURO_PA to locate in the collection.</param>
 /// <returns>True if found; else false.</returns>
 public bool Contains(Z00_BURO_PA value)
 {
     return List.Contains(value);
 }
 /// <summary>
 /// Inserts a Z00_BURO_PA into the collection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The Z00_BURO_PA to insert.</param>
 public void Insert(int index, Z00_BURO_PA value)
 {
     List.Insert(index, value);
 }
 /// <summary>
 /// Removes the first occurrence of the specified Z00_BURO_PA from the collection.
 /// </summary>
 /// <param name="value">The Z00_BURO_PA to remove from the collection.</param>
 public void Remove(Z00_BURO_PA value)
 {
     List.Remove(value);
 }
 /// <summary>
 /// Determines wheter an element is in the collection.
 /// </summary>
 /// <param name="value">The Z00_BURO_PA to locate in the collection.</param>
 /// <returns>True if found; else false.</returns>
 public bool Contains(Z00_BURO_PA value)
 {
     return(List.Contains(value));
 }
 /// <summary>
 /// Searches for the specified Z00_BURO_PA and returnes the zero-based index of the first occurrence in the collection.
 /// </summary>
 /// <param name="value">The Z00_BURO_PA to locate in the collection.</param>
 /// <returns>The index of the object found or -1.</returns>
 public int IndexOf(Z00_BURO_PA value)
 {
     return List.IndexOf(value);
 }
 /// <summary>
 /// Searches for the specified Z00_BURO_PA and returnes the zero-based index of the first occurrence in the collection.
 /// </summary>
 /// <param name="value">The Z00_BURO_PA to locate in the collection.</param>
 /// <returns>The index of the object found or -1.</returns>
 public int IndexOf(Z00_BURO_PA value)
 {
     return(List.IndexOf(value));
 }
 /// <summary>
 /// Inserts a Z00_BURO_PA into the collection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The Z00_BURO_PA to insert.</param>
 public void Insert(int index, Z00_BURO_PA value)
 {
     List.Insert(index, value);
 }
 /// <summary>
 /// Adds a Z00_BURO_PA to the end of the collection.
 /// </summary>
 /// <param name="value">The Z00_BURO_PA to be added to the end of the collection.</param>
 /// <returns>The index of the newZ00_BURO_PA.</returns>
 public int Add(Z00_BURO_PA value)
 {
     return(List.Add(value));
 }
 /// <summary>
 /// Removes the first occurrence of the specified Z00_BURO_PA from the collection.
 /// </summary>
 /// <param name="value">The Z00_BURO_PA to remove from the collection.</param>
 public void Remove(Z00_BURO_PA value)
 {
     List.Remove(value);
 }
 public int PA_respuestaSeccionDireccion(int estadoInc)
 {
     bool salir = false;
     int repeticiones=0;
     while (salir == false && estadoInc < etiSecc.Count)
     {
         switch(etiSecc[estadoInc].ToString())
         {
             case "PA":
                 if(repeticiones==0)
                 {
                     seccionDireccion.Direccion1= valSecc[estadoInc].ToString();
                     repeticiones++;
                 }
                 else
                 {
                     if(repeticiones<4)
                     {
                         seccionDireccionTable.Add(seccionDireccion);
                         seccionDireccion = new Z00_BURO_PA();
                         seccionDireccion.Direccion1 = valSecc[estadoInc].ToString();
                         repeticiones++;
                     }
                     else
                     {
                         Console.WriteLine("Esta seccion solo se puede repetir 4 veces debe existir un error");
                     }
                 }
                 break;
             case "00":
                 seccionDireccion.Direccion2 = valSecc[estadoInc].ToString();
                 break;
             case "01":
                 seccionDireccion.Colonia = valSecc[estadoInc].ToString();
                 break;
             case "02":
                 seccionDireccion.Municipio = valSecc[estadoInc].ToString();
                 break;
             case "03":
                 seccionDireccion.Ciudad = valSecc[estadoInc].ToString();
                 break;
             case "04":
                 seccionDireccion.Estado = valSecc[estadoInc].ToString();
                 break;
             case "05":
                 seccionDireccion.Cp = valSecc[estadoInc].ToString();
                 break;
             case "06":
                 seccionDireccion.Fecha_Residencia = cambiaFechaAFormatoABAP(valSecc[estadoInc].ToString());
                 break;
             case "07":
                 seccionDireccion.Telefono= valSecc[estadoInc].ToString();
                 break;
             case "08":
                 seccionDireccion.Extension_Tel = valSecc[estadoInc].ToString();
                 break;
             case "09":
                 seccionDireccion.Fax = valSecc[estadoInc].ToString();
                 break;
             case "10":
                 seccionDireccion.Tipo_Domicilio = valSecc[estadoInc].ToString();
                 break;
             case "11":
                 seccionDireccion.Id_Esp_Dom = valSecc[estadoInc].ToString();
                 break;
             case "12":
                 seccionDireccion.Fecha_Dir = cambiaFechaAFormatoABAP(valSecc[estadoInc].ToString());
                 break;
             default:
                 salir= true;
                 estadoInc=estadoInc-2;
                 //seccionDireccionTable.Add(seccionDireccion);
                 break;
         }
         estadoInc++;
     }
     seccionDireccionTable.Add(seccionDireccion);
     return estadoInc;
 }