示例#1
0
        internal void AddItem(string itemName, IFeatureLayer layer)
        {
            if (s_comboBox.items.Count == 0)
            {
                m_selAllCookie = s_comboBox.Add("Select All");
                s_comboBox.Select(m_selAllCookie);
            }

            // Add each item to combo box.
            int cookie = s_comboBox.Add(itemName, layer);
        }