I have a variable
double total = 25;
I want event()
to happen whenever total changes.
How do I monitor and cause event() to happen when total changes? For example, when total goes from 1 to 2, event happens, then when total goes from 2 to 3, event gets triggered again.
Edit. this is a variable, no I cannot make it into a property.
Thanks, I'm still learning.