示例#1
0
        public CodeRemoveEventStatement detach(EventRef eventRef, object handlerType, CodeExpression methodTarget, string methodName)
        {
            CodeRemoveEventStatement stat = new CodeRemoveEventStatement(eventRef, newHandler(handlerType, methodTarget, methodName));

            _enter(stat);
            return(stat);
        }
示例#2
0
        public CodeRemoveEventStatement detach(EventRef eventRef, HandlerType handler)
        {
            CodeRemoveEventStatement stat = new CodeRemoveEventStatement(eventRef, handler);

            _enter(stat);
            return(stat);
        }
示例#3
0
        public CodeRemoveEventStatement detach(EventRef eventRef, object handlerType, MethodRef methodRef)
        {
            CodeRemoveEventStatement stat = new CodeRemoveEventStatement(eventRef, newHandler(handlerType, methodRef));

            _enter(stat);
            return(stat);
        }
示例#4
0
        public CodeDelegateInvokeExpression trigger(EventRef targetEvent, params CodeExpression[] parameters)
        {
            CodeDelegateInvokeExpression d = new CodeDelegateInvokeExpression(targetEvent, parameters);

            _enter(d);
            return(d);
        }
示例#5
0
        public CodeDelegateInvokeExpression trigger(CodeExpression targetObject, string eventName, params CodeExpression[] parameters)
        {
            EventRef er = new EventRef(targetObject, eventName);
            CodeDelegateInvokeExpression ie = new CodeDelegateInvokeExpression(er, parameters);

            _enter(ie);
            return(ie);
        }
示例#6
0
        public CodeRemoveEventStatement detach(CodeExpression targetObject, string eventName, object handlerType, CodeExpression methodTarget, string methodName)
        {
            EventRef e = new EventRef(targetObject, eventName);
            CodeDelegateCreateExpression dce = newHandler(handlerType, methodTarget, methodName);

            MethodRef m = new MethodRef(methodTarget, methodName);

            return(detach(e, handlerType, m));
        }
示例#7
0
        public CodeRemoveEventStatement detach(CodeExpression targetObject, string eventName, HandlerType handler)
        {
            EventRef e = new EventRef(targetObject, eventName);

            return(detach(e, handler));
        }
示例#8
0
        public CodeRemoveEventStatement detach(CodeExpression targetObject, string eventName, object handlerType, MethodRef methodRef)
        {
            EventRef e = new EventRef(targetObject, eventName);

            return(detach(e, handlerType, methodRef));
        }