I am doing an application which has some calculation code. I would like to know if there is possible to remember the number from the previous event handler?
Lets say that I put into textbox1 number 10 and into textBox2 number 5.
When the even button1_Pressed starts the code has to sum these two number up.
In case if I press the same button again and I did not change any number in those two textBoxes, the code MUST NOT sum those numbers again.
How to achive this? It has to remember the values from the previous even somehow, that I can check the values in textBoxes from before and now.
And if there is no changes do not do the calculation, but if the numbers are different (just one of them, pr both) do the calculation.