protected void OnTestEventReceived(object sender, TestEvent e) { if (TestEventReceived != null) { TestEventReceived(sender, e); } }
protected void OnTestEvent(TestEvent e) { this.Events.Add(e); //this.Events.Enqueue(e); if (EventReceived != null) { EventReceived(this, e); } }