示例#1
0
        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);
        }
		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);
        }