Suggestions for implementing a simple search for "business objects" in a .NET WinForms app? -


What's the best way to provide simple search capability for "business objects" in the .NET WinForms application?

I mean Vista + Windows 7's "Search box" which is in the upper-right corner of almost all the windows, that searches for the content of that window (nothing fancy, maybe someone Also, either "advanced" search - keep it simple).

From "merchandise", I mean objects based on classrooms for things like "clients" and "addresses" (just your normal run-in contact information mostly)

I "Rolling your own" is considered a simple search, maybe one of my classes can be applied to an "included" function so that I can ask each object, if it contains any search terms of any user (and then " / P>

I have also seen in Lucene.NET , But it is very complex for my needs - an index (and to make updates) and to maintain it.

Suggestions? Idea?

I do not know the "best" method (if I did I used to work on Google). Seeing that, though, a few months ago A proof-of-concept / customer demo was implemented in a similar manner, which was the trick. V was able to interrupt, especially wrt in the size of the searchable dataset, so the display was not an issue.

I have created a FilterableListView , I left one over immediately and used the platform interop (something like "filter" or "search") to give it I have again updated the contents of the ListView from a background thread (using the equivalent of my implementation), if there was a delay of 0.5 seconds after the last event from the filter box.

I did a simple, case-insensitive substrings against the content of a given field in ListView , it was fast, simple and effective. I found Linq for the item to be useful to lot .

Some things that I could do better for more production-ready implementation:

  1. Use double click speed to calculate the appropriate delay before searching .

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -