Esempio n. 1
0
        public void SetValue(IRfcTable table)
        {
            this.Clear();

            for (int i = 0; i < table.RowCount; i++)
            {
                table.CurrentIndex = i;
                ZACCKEY2 dataRow = this.CreateNewRow() as ZACCKEY2;
                dataRow.SetValue(table.CurrentRow);
                this.Add(dataRow);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Determines wheter an element is in the collection.
 /// </summary>
 /// <param name="value">The ZACCKEY2 to locate in the collection.</param>
 /// <returns>True if found; else false.</returns>
 public bool Contains(ZACCKEY2 value)
 {
     return(List.Contains(value));
 }
Esempio n. 3
0
 /// <summary>
 /// Searches for the specified ZACCKEY2 and returnes the zero-based index of the first occurrence in the collection.
 /// </summary>
 /// <param name="value">The ZACCKEY2 to locate in the collection.</param>
 /// <returns>The index of the object found or -1.</returns>
 public int IndexOf(ZACCKEY2 value)
 {
     return(List.IndexOf(value));
 }
Esempio n. 4
0
 /// <summary>
 /// Inserts a ZACCKEY2 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 ZACCKEY2 to insert.</param>
 public void Insert(int index, ZACCKEY2 value)
 {
     List.Insert(index, value);
 }
Esempio n. 5
0
 /// <summary>
 /// Adds a ZACCKEY2 to the end of the collection.
 /// </summary>
 /// <param name="value">The ZACCKEY2 to be added to the end of the collection.</param>
 /// <returns>The index of the newZACCKEY2.</returns>
 public int Add(ZACCKEY2 value)
 {
     return(List.Add(value));
 }
Esempio n. 6
0
 /// <summary>
 /// Removes the first occurrence of the specified ZACCKEY2 from the collection.
 /// </summary>
 /// <param name="value">The ZACCKEY2 to remove from the collection.</param>
 public void Remove(ZACCKEY2 value)
 {
     List.Remove(value);
 }