Example #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="adescriptionitem"></param>
        /// <returns></returns>
        public int AddDescription(DescriptionItem adescriptionitem)
        {
            int i = -1;

            try {
                list.Add(adescriptionitem);
                i = list.Count - 1;
            } catch {
                i = -1;
            }

            return i;
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="adescriptionitem"></param>
        /// <returns></returns>
        public int AddDescription(DescriptionItem adescriptionitem)
        {
            int i = -1;

            try {
                list.Add(adescriptionitem);
                i = list.Count - 1;
            } catch {
                i = -1;
            }

            return(i);
        }
Example #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="anitem"></param>
        /// <returns></returns>
        public bool RemoveDescription(DescriptionItem anitem)
        {
            bool b = false;

            if (anitem != null)
            {
                try {
                    list.Remove(anitem);
                    b = true;
                } catch {
                    b = false;
                }
            }

            return(b);
        }
Example #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="anitem"></param>
        /// <returns></returns>
        public bool RemoveDescription(DescriptionItem anitem)
        {
            bool b = false;

            if (anitem != null) {
                try {
                    list.Remove(anitem);
                    b = true;
                } catch {
                    b = false;
                }
            }

            return b;
        }