This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
I am trying to program a simple Form where a combo updates a source property and then should arrange a calculations, that at the time updates other properties in the same class, such as:
Both properties have target controls in the form, so a change in propertyA should fire automatically this calculation and update the target controls accordingly. I try to attain this with the following snippet:
But this code doesn't refresh the control values. I run it after the EventDispatchThread has updated the values, because otherwhise the propertyB new value may be overriden by the old value. Not completely sure about this, but anyway this should work!