public KeyBinding(ICommand command, KeyGesture gesture) : this(CreateKeyBinding(command, gesture), true) { }
private static IntPtr CreateKeyBinding(object command, KeyGesture gesture) { IntPtr ret = NoesisGUI_PINVOKE.KeyBinding_CreateKeyBinding(Noesis.Extend.GetInstanceHandle(command), KeyGesture.getCPtr(gesture)); if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) { throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve(); } return(ret); }