Whenever I need to attach an event handler, usually I use one of these methods, a delegate, anonymous method, or lambda expression. For complex events (more than 3 lines of code), I create a separate method. If the method is short, I use anonymous method.