public void RaiseAutomationEvent (AutomationEvent eventId, object provider, AutomationEventArgs e) { AutomationEvents.Add (new AutomationEventTuple { eventId = eventId, provider = provider, e = e}); }