示例#1
0
            int internalControlWaitForExecutionHandler(IntPtr parameter, IntPtr ctlVal, bool test, bool synchoCheck)
            {
                GCHandle handle = GCHandle.FromIntPtr(parameter);

                ControlHandlerInfo info = (ControlHandlerInfo)handle.Target;

                if (info != null & info.waitForExecHandler != null)
                {
                    return((int)info.waitForExecHandler(info.controlObject, info.waitForExecHandlerParameter, new MmsValue(ctlVal), test, synchoCheck));
                }
                else
                {
                    return((int)ControlHandlerResult.FAILED);
                }
            }
示例#2
0
            int InternalControlWaitForExecutionHandlerImpl(IntPtr action, IntPtr parameter, IntPtr ctlVal, bool test, bool synchoCheck)
            {
                GCHandle handle = GCHandle.FromIntPtr(parameter);

                ControlHandlerInfo info = (ControlHandlerInfo)handle.Target;

                if (info != null & info.waitForExecHandler != null)
                {
                    ControlAction controlAction = new ControlAction(action, info, this);

                    return((int)info.waitForExecHandler(controlAction, info.waitForExecHandlerParameter, new MmsValue(ctlVal), test, synchoCheck));
                }
                else
                {
                    return((int)ControlHandlerResult.FAILED);
                }
            }