Пример #1
0
 public static void SetKeyPressEventDelegate(this IEpos2Keyboard This, Epos2KbdKeyPressDelegate @delegate)
 {
     if (@delegate == null)
     {
         throw new ArgumentNullException("@delegate");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("setKeyPressEventDelegate:"), @delegate.Handle);
 }
Пример #2
0
 public virtual void SetKeyPressEventDelegate(Epos2KbdKeyPressDelegate @delegate)
 {
     if (@delegate == null)
     {
         throw new ArgumentNullException("@delegate");
     }
     if (IsDirectBinding)
     {
         global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("setKeyPressEventDelegate:"), @delegate.Handle);
     }
     else
     {
         global::ApiDefinition.Messaging.void_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("setKeyPressEventDelegate:"), @delegate.Handle);
     }
 }