How to bind an existing function to an event dispatcher?

i think your solution is use a interface (in the function form) not an event dispatcher