Originally posted by jagex
Hey,
I have a question.
I always set my event handlers like this
rectangleLogIn.MouseLeftButtonDown += Rectangle_MouseLeftButtonDown;
rectangleRegister.MouseLeftButtonDown += Rectangle_MouseLeftButtonDown;
Should I always be initializing a new event or is this way fine? Thanks!
That's if you're constructing your own enums/if you're using someone elses premade stuff (like Microsoft) but what the person wanted to know is how to create your own. Since the enum pretty much has no return type it needs to be delegated. But as long as your way gets the job done it'll do fine, although you could pretty much just make a void.
-I thought I replied to this the other day, apparently NGU decided to fuck up, sorry, I restored auto saved content thank fuck lol