Esempio n. 1
0
            int internalControlHandler(IntPtr parameter, IntPtr ctlVal, bool test)
            {
                GCHandle handle = GCHandle.FromIntPtr(parameter);

                ControlHandlerInfo info = (ControlHandlerInfo)handle.Target;

                if (info != null & info.controlHandler != null)
                {
                    return((int)info.controlHandler(info.controlObject, info.controlHandlerParameter, new MmsValue(ctlVal), test));
                }
                else
                {
                    return((int)ControlHandlerResult.FAILED);
                }
            }
Esempio n. 2
0
            int InternalControlHandlerImpl(IntPtr action, IntPtr parameter, IntPtr ctlVal, bool test)
            {
                GCHandle handle = GCHandle.FromIntPtr(parameter);

                ControlHandlerInfo info = (ControlHandlerInfo)handle.Target;

                ControlAction controlAction = new ControlAction(action, info, this);

                if (info != null & info.controlHandler != null)
                {
                    return((int)info.controlHandler(controlAction, info.controlHandlerParameter, new MmsValue(ctlVal), test));
                }
                else
                {
                    return((int)ControlHandlerResult.FAILED);
                }
            }