예제 #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);
        }
예제 #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;
        }
예제 #3
0
 public void AddByItem(KeyTypeValueItem item)
 {
     this.Items.Add(item);
 }