Beispiel #1
0
        internal void StartEvents()
        {
            if (_connectionPoint != null)
            {
                return;
            }

            //
            Object nativeObject = this.Host.ActiveXInstance;

            if (nativeObject != null)
            {
                try
                {
                    _connectionPoint = new ConnectionPointCookie(nativeObject, this, typeof(UnsafeNativeMethods.IPropertyNotifySink));
                }
                catch (Exception ex)
                {
                    if (CriticalExceptions.IsCriticalException(ex))
                    {
                        throw;
                    }
                }
            }
        }
Beispiel #2
0
        internal void StartEvents() 
        {
            if (_connectionPoint != null)
                return;

            //
            Object nativeObject = this.Host.ActiveXInstance;
            if (nativeObject != null) 
            {
                try 
                {
                    _connectionPoint = new ConnectionPointCookie(nativeObject, this, typeof(UnsafeNativeMethods.IPropertyNotifySink));
                }
                catch (Exception ex) 
                {
                    if (CriticalExceptions.IsCriticalException(ex)) 
                    {
                        throw;
                    }
                }
            }
        }
Beispiel #3
0
 internal override void CreateSink()
 { 
     Debug.Assert(_axIWebBrowser2 != null);
     _cookie = new ConnectionPointCookie(_axIWebBrowser2,
             _hostingAdaptor.CreateEventSink(),
             typeof(UnsafeNativeMethods.DWebBrowserEvents2)); 
 }