Exemple #1
0
        public OptionItem(string strName, int nIdx, OptionItemList items = null)
        {
            m_strName = strName;
            m_nIdx    = nIdx;

            if (items != null)
            {
                m_rgOptionItemList = items;
            }
        }
Exemple #2
0
        public OptionItemList Clone()
        {
            OptionItemList list = new OptionItemList();

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

            return(list);
        }
Exemple #3
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);
        }