void ret_CloseUp(object sender, DevExpress.XtraEditors.Controls.CloseUpEventArgs e) { RepositoryItemFilterComboBox ret = base.CreateRepositoryItem() as RepositoryItemFilterComboBox; ret.Popup -= new EventHandler(ret_Popup); ret.CloseUp -= new DevExpress.XtraEditors.Controls.CloseUpEventHandler(ret_CloseUp); }
protected override RepositoryItemPopupBase CreateRepositoryItem() { RepositoryItemFilterComboBox ret = base.CreateRepositoryItem() as RepositoryItemFilterComboBox; ret.HighlightedItemStyle = DevExpress.XtraEditors.HighlightStyle.Skinned; ret.Popup += new EventHandler(ret_Popup); ret.CloseUp += new DevExpress.XtraEditors.Controls.CloseUpEventHandler(ret_CloseUp); return(ret); }