It requires more work to read your code than to simply cast the button to a variable and then use the variable. It would produce simple, less verbose code, which is easier to read.
You should post this question to Stack Overflow, where you will get some really interesting and detailed answers, probably with a detailed discussion of the pros and cons of your method.
I'm a self-taught noob amateur. Please take this into account when responding to my posts or when taking advice from me.
No comments:
Post a Comment