Notice that the main method is marked as static
static void Main(string[] args)
The initial problem is that the EventHandler you are attempting to use is non-static.
public event EventHandler<IterationEventArgs> OnRaiseIterationEvent;
The static method Main(), cannot access the non-static member OnRaiseIterationEvent.
You
may be able to fix this simply by making the item static.
static event EventHandler<IterationEventArgs> OnRaiseIterationEvent;
But, there may be other implications to that.
Your second error is caused because your static method has no concept of the
this
variable. this is only available on instance objects (non-static).