public OptionItem(string strName, int nIdx, OptionItemList items = null) { m_strName = strName; m_nIdx = nIdx; if (items != null) { m_rgOptionItemList = items; } }
public OptionItemList Clone() { OptionItemList list = new OptionItemList(); foreach (OptionItem item in m_rgItems) { list.Add(item); } return(list); }
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); }