Esempio n. 1
0
        private static IntPtr CreateInputBinding(object command, InputGesture gesture)
        {
            IntPtr ret = NoesisGUI_PINVOKE.InputBinding_CreateInputBinding(Noesis.Extend.GetInstanceHandle(command), InputGesture.getCPtr(gesture));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 2
0
 internal static HandleRef getCPtr(InputGesture obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Esempio n. 3
0
 public InputBinding(ICommand command, InputGesture gesture) : this(CreateInputBinding(command, gesture), true)
 {
 }
Esempio n. 4
0
        private static IntPtr CreateInputBinding(object command, InputGesture gesture)
        {
            IntPtr ret = NoesisGUI_PINVOKE.InputBinding_CreateInputBinding(Noesis.Extend.GetInstanceHandle(command), InputGesture.getCPtr(gesture));

            return(ret);
        }