Exemplo n.º 1
0
        public void AddByKeyTypeValue(string AKeyData, string ATypeData, string AValueData)
        {
            KeyTypeValueItem item = new KeyTypeValueItem();
            item.KeyData = AKeyData;
            item.TypeData = ATypeData;
            item.ValueData = AValueData;

            this.AddByItem(item);
        }
Exemplo n.º 2
0
        public int IndexByItem(KeyTypeValueItem AItem)
        {
            int Result = -1;

            bool Found = false;
            int AIndex = 0;
            int ACount = this.Items.Count;
            while (!Found && (AIndex < ACount))
            {
                KeyTypeValueItem eachItem = this.Items[AIndex];
                Found = (eachItem.KeyData == AItem.KeyData);
                AIndex++;
            } // while

            if (Found)
            {
                Result = (AIndex - 1);
            }

            return Result;
        }
Exemplo n.º 3
0
 public void AddByItem(KeyTypeValueItem item)
 {
     this.Items.Add(item);
 }