public void AddTargetWithActionForControlEvent(object target, SEL_CCControlHandler action, CCControlEvent controlEvent) { // Create the invocation object var invocation = new CCInvocation(target, action, controlEvent); // Add the invocation into the dispatch list for the given control event RawList <CCInvocation> eventInvocationList = DispatchListforControlEvent(controlEvent); eventInvocationList.Add(invocation); }
public void AddTargetWithActionForControlEvent(object target, Action<object, CCControlEvent> action, CCControlEvent controlEvent) { // Create the invocation object var invocation = new CCInvocation(target, action, controlEvent); // Add the invocation into the dispatch list for the given control event CCRawList<CCInvocation> eventInvocationList = DispatchListforControlEvent(controlEvent); eventInvocationList.Add(invocation); }