visits - presentation logic. deleted test projects

nh - get from id, criteria -
http://ayende.com/blog/4023/nhibernate-queries-examples
wpf control visiblity -
http://geekswithblogs.net/thibbard/archive/2007/12/10/wpf---showhide-element-based-on-checkbox.checked.aspx
nh - criteria oder by -
http://stackoverflow.com/questions/2010117/how-do-you-specify-a-sort-criteria-for-an-association-in-nhibernate
list sort -
http://stackoverflow.com/questions/3309188/c-net-how-to-sort-a-list-t-by-a-property-in-the-object

events
window on load for a patient without visits
show edit new visit and hide add new visit
autocomplete symptoms, diagnosis, tags, doctor attended
on save make new visit and show add new visit
window on load for a patient with visits
populate visits on left, select top visit and populate its details on
right
same as (1.a.i)
update
add new visit - same as (1.a)
except if visits clicked again - load visit details

i agree - code is bit messy, maybe i must design proper states,
transitions and minimise it.