示例#1
0
        public OptionItemList Clone()
        {
            OptionItemList list = new OptionItemList();

            foreach (OptionItem item in m_rgItems)
            {
                list.Add(item);
            }

            return(list);
        }
示例#2
0
        private static object getList(string str)
        {
            string[]       rgstr   = str.Split(',');
            OptionItemList options = new OptionItemList();

            for (int i = 0; i < rgstr.Length; i++)
            {
                options.Add(new OptionItem(rgstr[i], i));
            }

            return(options);
        }