コード例 #1
0
ファイル: RadMenuItemBase.cs プロジェクト: RichardHaggard/BDC
 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();
 }
コード例 #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();
        }