Ejemplo n.º 1
0
        public ICsiContainer GetItemByRef(string name, string level)
        {
            CsiContainer impl       = null;
            IEnumerator  enumerator = this.GetAllChildren().GetEnumerator();

            while (enumerator.MoveNext())
            {
                CsiObject current = enumerator.Current as CsiObject;
                impl = new CsiContainer(this.GetOwnerDocument(), current.GetDomElement());
                if ((level != null) && (level.Length == 0))
                {
                    level = null;
                }
                if (impl.Equals(name, level))
                {
                    return(impl);
                }
                impl = null;
            }
            return(impl);
        }
Ejemplo n.º 2
0
        public virtual void AppendItemById(string istanceID)
        {
            ICsiObject obj2 = new CsiObject(this.GetOwnerDocument(), "__listItem", this);

            obj2.SetObjectId(istanceID);
        }