protected override void OnEnter(EventArgs e) { foreach (object i in base.Items) { string strPy = ""; strPy = Chinese2Spell.GetHeadOfChs(i.ToString()); strPy = strPy.Replace(" ", "").ToLower(); m_arrlist_All.Add(new object[] { i, strPy }); } base.OnEnter(e); }
protected override void OnEnter(EventArgs e) { if (this.DropDownStyle != ComboBoxStyle.DropDown) { return; } foreach (object i in this.Items) { string strPy = ""; //if (this.m_filter == FilterType.ShouZiMu) strPy = Chinese2Spell.GetHeadOfChs(i.ToString()); //else if (this.m_filter == FilterType.QuanPin) // strPy = Chinese2Spell.ChsString2Spell(i.ToString()); strPy = strPy.Replace(" ", "").ToLower(); m_arrlist_All.Add(new object[] { i, strPy }); } base.OnEnter(e); }