Esempio n. 1
0
        protected override void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    if (this.IsHooked)
                    {
                        IUIAutomation uia = this.IUIAutomation;

                        if (uia != null)
                        {
                            uia.RemoveAutomationEventHandler(this.EventId, this.Element, this);
                        }
                    }
                }
            }
            base.Dispose(disposing);
        }