(Source code introduction
There is a problem with the code. Double clicking the button will enlarge the picture and generate two events.
Do it yourself, fix the above two bugs, correct spelling errors in the code, and add some custom messages to facilitate code reading.)