protected override void DisposeManagedResources()
 {
     if (this.dropDown != null)
     {
         this.UnWireDropDownEvents();
         this.dropDown.Dispose();
     }
     if (this.accessibleObject != null)
     {
         this.accessibleObject.Dispose();
         this.accessibleObject = (RadMenuItemAccessibleObject)null;
     }
     base.DisposeManagedResources();
 }
Exemple #2
0
        protected override void DisposeManagedResources()
        {
            if (this.dropDown != null)
            {
                //fix for 371350
                this.UnWireDropDownEvents();
                this.dropDown.Dispose();
            }

            if (this.accessibleObject != null)
            {
                this.accessibleObject.Dispose();
                this.accessibleObject = null;
            }

            base.DisposeManagedResources();
        }