aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/ListBox.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-25 17:53:21 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-25 17:53:21 +0100
commitf011ac73727aeda00cfa57997581408e9133b08c (patch)
treee6d7ba8f2d04ed267a8e6532893d62a6feaabdd0 /src/GraphicObjects/ListBox.cs
parent76edc3ce44583ee8160ea207dfeb17c4d6508e59 (diff)
debug selectedItem in listbox
Diffstat (limited to 'src/GraphicObjects/ListBox.cs')
-rw-r--r--src/GraphicObjects/ListBox.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/GraphicObjects/ListBox.cs b/src/GraphicObjects/ListBox.cs
index 2b27a05e..41f5a42b 100644
--- a/src/GraphicObjects/ListBox.cs
+++ b/src/GraphicObjects/ListBox.cs
@@ -208,10 +208,7 @@ namespace Crow
}
void itemClick(object sender, OpenTK.Input.MouseButtonEventArgs e){
- SelectedItemChanged.Raise (sender, new SelectionChangeEventArgs((sender as GraphicObject).DataSource));
- NotifyValueChanged ("SelectedItem", (sender as GraphicObject).DataSource);
- //Debug.WriteLine ((sender as GraphicObject).DataSource);
-
+ SelectedIndex = data.IndexOf((sender as GraphicObject).DataSource);
}
#region IXmlSerializable