public static void RaiseEvent(string eventID, object sender) { // Create event info EventData eventData = EventData.Alloate(); eventData.EventID = eventID; eventData.Sender = sender; // Send it RaiseEvent(eventData); EventData.Release(eventData); }