public CodeRemoveEventStatement detach(EventRef eventRef, object handlerType, CodeExpression methodTarget, string methodName) { CodeRemoveEventStatement stat = new CodeRemoveEventStatement(eventRef, newHandler(handlerType, methodTarget, methodName)); _enter(stat); return(stat); }
public CodeRemoveEventStatement detach(EventRef eventRef, HandlerType handler) { CodeRemoveEventStatement stat = new CodeRemoveEventStatement(eventRef, handler); _enter(stat); return(stat); }
public CodeRemoveEventStatement detach(EventRef eventRef, object handlerType, MethodRef methodRef) { CodeRemoveEventStatement stat = new CodeRemoveEventStatement(eventRef, newHandler(handlerType, methodRef)); _enter(stat); return(stat); }
public CodeDelegateInvokeExpression trigger(EventRef targetEvent, params CodeExpression[] parameters) { CodeDelegateInvokeExpression d = new CodeDelegateInvokeExpression(targetEvent, parameters); _enter(d); return(d); }
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); }
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)); }
public CodeRemoveEventStatement detach(CodeExpression targetObject, string eventName, HandlerType handler) { EventRef e = new EventRef(targetObject, eventName); return(detach(e, handler)); }
public CodeRemoveEventStatement detach(CodeExpression targetObject, string eventName, object handlerType, MethodRef methodRef) { EventRef e = new EventRef(targetObject, eventName); return(detach(e, handlerType, methodRef)); }