use smart combobox control

This commit is contained in:
chudov
2010-03-22 07:02:47 +00:00
parent e3eaf9ae85
commit 5f270e4a8e
4 changed files with 172 additions and 213 deletions

View File

@@ -508,14 +508,14 @@ namespace BBBNOVA
{
//System.Diagnostics.Trace.WriteLine(string.Format("OnSelectedValueChanged({0}=>{1})", Text, _listBox.Text));
OnSelectedIndexChanged(e);
//this.SelectedIndex = _listBox.SelectedIndex;
//this.Invalidate(true);
Text = _listBox.SelectedValue != null ?
_listBox.GetItemText(_listBox.SelectedValue) :
"";
OnSelectedIndexChanged(e);
base.OnSelectedValueChanged(e);
}