예제 #1
0
 public bool DocQlfrAddItem(DocumentType7Code value)
 {
     // BEGIN ADDED BY XSD - array AddItem accessor
     try
     {
         if ((this.docQlfrField == default(DocumentType7Code[])))
         {
             return(false);
         }
         else
         {
             DocumentType7Code[] array = new DocumentType7Code[(this.docQlfrField.Length + 1)];
             int i = 0;
             for (i = 0; (i < this.docQlfrField.Length); i = (i + 1))
             {
                 array[i] = docQlfrField[i];
             }
             array[i]     = value;
             this.DocQlfr = array;
             return(true);
         }
     }
     catch (System.Exception ex)
     {
         return(false);
     }
     // END ADDED BY XSD
 }
예제 #2
0
 public bool DocQlfrSetItem(int index, DocumentType7Code value)
 {
     // BEGIN ADDED BY XSD - array SetItem accessor
     try
     {
         if ((this.docQlfrField == default(DocumentType7Code[])))
         {
             return(false);
         }
         else
         {
             this.docQlfrField[index] = value;
             return(true);
         }
     }
     catch (System.Exception ex)
     {
         return(false);
     }
     // END ADDED BY XSD
 }
예제 #3
0
 public bool DocQlfrRemoveItem(int index)
 {
     // BEGIN ADDED BY XSD - array RemoveItem accessor
     try
     {
         if ((this.docQlfrField == default(DocumentType7Code[])))
         {
             return(false);
         }
         else
         {
             if ((this.docQlfrField.Length <= index))
             {
                 return(false);
             }
             else
             {
                 DocumentType7Code[] array = new DocumentType7Code[(this.docQlfrField.Length - 1)];
                 int i = 0;
                 for (i = 0; (i < index); i = (i + 1))
                 {
                     array[i] = docQlfrField[i];
                 }
                 for (i = (i + 1); (i < this.docQlfrField.Length); i = (i + 1))
                 {
                     array[i] = docQlfrField[i];
                 }
                 this.DocQlfr = array;
                 return(true);
             }
         }
     }
     catch (System.Exception ex)
     {
         return(false);
     }
     // END ADDED BY XSD
 }