public void setValue(CswNbtNodeTypePropListOption selOption)
 {
     if (null != selOption)
     {
         if (selOption.Value.StartsWith(NodeTypePrefix))
         {
             _setValue(CswEnumNbtViewRelatedIdType.NodeTypeId, CswConvert.ToInt32(selOption.Value.Substring(NodeTypePrefix.Length)), selOption.Text);
         }
         else if (selOption.Value.StartsWith(ObjectClassPrefix))
         {
             _setValue(CswEnumNbtViewRelatedIdType.ObjectClassId, CswConvert.ToInt32(selOption.Value.Substring(ObjectClassPrefix.Length)), selOption.Text);
         }
         else if (selOption.Value.StartsWith(PropertySetPrefix))
         {
             _setValue(CswEnumNbtViewRelatedIdType.PropertySetId, CswConvert.ToInt32(selOption.Value.Substring(PropertySetPrefix.Length)), selOption.Text);
         }
         //else
         //{
         //    throw new CswDniException( CswEnumErrorType.Error, "Invalid option: " + selOption.Text, "MetaDataList got an unrecognized value: " + selOption.Value );
         //}
     }
 }//setValue( CswNbtNodeTypePropListOption selOption )
        public void setValue(CswEnumNbtViewRelatedIdType Type, Int32 Id)
        {
            CswNbtNodeTypePropListOption selOption = null;

            if (Type == CswEnumNbtViewRelatedIdType.NodeTypeId)
            {
                selOption = Options.FindByValue(NodeTypePrefix + Id.ToString());
            }
            else if (Type == CswEnumNbtViewRelatedIdType.ObjectClassId)
            {
                selOption = Options.FindByValue(ObjectClassPrefix + Id.ToString());
            }
            else if (Type == CswEnumNbtViewRelatedIdType.PropertySetId)
            {
                selOption = Options.FindByValue(PropertySetPrefix + Id.ToString());
            }

            if (null != selOption)
            {
                _setValue(Type, Id, selOption.Text);
            }
        }