//--------------------------------------------------------------------- internal EvtHandler(IntPtr wxObject) : base(wxObject) { lock (typeof(EvtHandler)) { eventMarshal = new EvtMarshalDelegate(MarshalEvent); wxEvtHandler_proxy(wxObject, eventMarshal); listeners = new ArrayList(); AddEventListener(Event.wxEVT_OBJECTDELETED, new EventListener(OnObjectDeleted)); AddEvtHander(this); } }
//--------------------------------------------------------------------- [DllImport("wx-c"), System.Security.SuppressUnmanagedCodeSecurity] static extern void wxEvtHandler_proxy(IntPtr self, EvtMarshalDelegate proxy);