MonoTouch.Dialog
MonoTouch.Dialog copied to clipboard
Untitled
Could you produce a diff between my branch and yours? It seems like this would at least let me see some of the changes. Currently the changes as made available on this pull request are hard to see since they consist mostly of newline changes
Yes, sorry for that. My last checkin fixes the newlines. The entire/fixed diff can be viewed here: https://github.com/migueldeicaza/MonoTouch.Dialog/pull/45/files
I got a few of the other patches, but I do not understand the radio changes.
Can you explain what the problem is, and what this patch changes to fix it?
The RadioSelectionAttribute has a target property, but that property is never used in the current code base. The current code base, just skips any Int-typed property. (So it is impossible to add a normal int field like Age) Then, if such an int-typed property has a RadioSelectionAttribute, it requires the next property(!) to be an IEnumerable, no matter if the target property equals that member's name.
The change in my code is that whenever an IEnumerable is encountered, it looks for an int-member that has a RadioSelectionAttribute where Target is equal to the IEnumerable's name. Also, int typed members that don't have the RadioSelectionAttribute, ar added as entry elements to allow someone to input a number.