Use integers to call events?

Yep, just do what Mhousse suggested. You should never have to do something like you did in the picture above.