fire-eggs / FamilyLines

A free, open-source genealogy application to track, organize, and share your family history.
13 stars 1 forks source link

Validate dates between events #83

Open fire-eggs opened 7 years ago

fire-eggs commented 7 years ago

notonyournelly[CodePlex]
We currently don't validate dates between events in the GUI. E.g. the user is not told if they enter a death date that is before the birth date.

In the Details pane GUI, consider using the CoerceValueCallback to enforce inter-event rules. Ideally, instead of marking a textbox as 'red' for an invalid date, I'd suggest marking the textbox with 'yellow' to indicate a possibly invalid date. An appropriate tooltip (e.g. quotThe entered date is before so-and-so's birth datequot) would be great! [I suggest a 'warning' instead of an 'error' as the user might be correcting errors in the record, and hasn't gotten to the other event(s) yet.]

A blog entry about CoerceValueCallback:

http://wpf.2000things.com/2010/12/09/150-an-example-of-using-propertychanged-and-coercevalue-callbacks/

http://stackoverflow.com/questions/6845405/how-to-propertly-use-coercevaluecallback-in-a-custom-wpf-usercontrol