void AttachToolbarEvents(SearchBar bar) { bar.Changed += (o, e) => { bar.LogMessage("Text changed"); if (SearchEntryChanged != null) { SearchEntryChanged(o, e); } }; bar.KeyPressed += (o, e) => { if (SearchEntryKeyPressed != null) { SearchEntryKeyPressed(o, e); } }; bar.LostFocus += (o, e) => { if (SearchEntryLostFocus != null) { SearchEntryLostFocus(o, e); } }; bar.SelectionActivated += (o, e) => { if (SearchEntryActivated != null) { SearchEntryActivated(o, e); } }; }
void AttachToolbarEvents (SearchBar bar) { bar.Changed += (o, e) => { bar.LogMessage("Text changed"); if (SearchEntryChanged != null) SearchEntryChanged (o, e); }; bar.KeyPressed += (o, e) => { if (SearchEntryKeyPressed != null) SearchEntryKeyPressed (o, e); }; bar.LostFocus += (o, e) => { if (SearchEntryLostFocus != null) SearchEntryLostFocus (o, e); }; bar.SelectionActivated += (o, e) => { if (SearchEntryActivated != null) SearchEntryActivated (o, e); }; }