Gregg Walker
2/7/2008 8:55:00 PM
> Just one question; if the user is in the middle of an edit is that
> information not lost when UISet has been updated from
> the BGSet?
Basically what we do is throw away the BGSet whenever the user is in the
middle of editing.
So I'll have some code that detects when an edit is started and finished and
update some global bool that will let the UI thread delegate know not to do
anything with the BGSet when an edit is in progress. The UISet will only be
updated when an edit is not in progress.
Also in the case where the process of rebinding the UISet to controls may a
short time you may conversely want to prevent editing while the delegate
method is actually rebinding the UISet.
Another way to handle this if you can't afford to ignore new BGSets is to
push new BGSets onto a stack when the delegate method is called and an edit
is in progress. Once any edit is finished you can check the stack for
entries and pop the last BGSet and rebind when one exists.
HTH
--
Gregg Walker