Пример #1
0
        /// <summary>
        /// Add new item
        /// </summary>
        /// <returns></returns>
        public AdminItem AddItem()
        {
            AdminItem item = new AdminItem(this.OwnerDocument);

            this.AddChild(item);
            return(item);
        }
Пример #2
0
        /// <summary>
        /// The list of invites
        /// </summary>
        public AdminItem[] GetItems()
        {
            XmlNodeList nl = GetElementsByTagName("item", URI.MUC_ADMIN);

            AdminItem[] items = new AdminItem[nl.Count];
            int         i     = 0;

            foreach (XmlNode n in nl)
            {
                items[i] = (AdminItem)n;
                i++;
            }
            return(items);
        }