public void Bar() { Foo foo = new Foo(); **foo.MyEvent += foo_MyEvent;** foo.FireEvent(); } void foo_MyEvent(object sender, EventArgs e) { (
In this case method foo_MyEvent will fire whene that event is called (so you subscribe to the event in line 4)