internal void setDBTag(int _station, int _address, short _datatype, object _value) { lock ( lockobject ) { int curIdx = allCreatedTags.IndexOfKey(HashIndex(_station, _address, _datatype)); if (curIdx < 0) { allCreatedTags.Add (HashIndex(_station, _address, _datatype), _value ); } else { allCreatedTags.SetByIndex(curIdx, _value); } } }