Ejemplo n.º 1
0
        //---------------------------------------------------------------------

        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);
            }
        }
Ejemplo n.º 2
0
        //---------------------------------------------------------------------

        [DllImport("wx-c"), System.Security.SuppressUnmanagedCodeSecurity] static extern void wxEvtHandler_proxy(IntPtr self, EvtMarshalDelegate proxy);