public virtual void RaiseActivateRequest() { var handlers = ActivateRequest; // Invoke the event handlers if (handlers != null) { try { handlers(this, EventArgs.Empty); } catch (Exception ex) { Console.WriteLine(ex); } } }