Simple event system inspired from C#