Esempio n. 1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _owner = null;
     }
     base.Dispose(disposing);
 }
Esempio n. 2
0
        //protected override void OnSizeChanged(EventArgs e)
        //{
        //    base.OnSizeChanged(e);
        //    if (this.DesignMode)
        //    {
        //        if (_manager != null)
        //        {
        //            _manager.Dispose();
        //        }
        //        _manager = new ScrollBarManager(this);
        //    }
        //}

        //protected override void OnLocationChanged(EventArgs e)
        //{
        //    base.OnLocationChanged(e);
        //    if (this.DesignMode)
        //    {
        //        if (_manager != null)
        //        {
        //            _manager.Dispose();
        //        }
        //        _manager = new ScrollBarManager(this);
        //    }
        //}

        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_manager != null)
                {
                    _manager.Dispose();
                    _manager = null;
                }
            }
            base.Dispose(disposing);
        }
Esempio n. 3
0
 protected override void OnHandleCreated(EventArgs e)
 {
     base.OnHandleCreated(e);
     if (_manager != null)
     {
         _manager.Dispose();
     }
     if (!this.DesignMode)
     {
         _manager = new ScrollBarManager(this);
     }
 }
Esempio n. 4
0
 protected override void OnHandleCreated(EventArgs e)
 {
     base.OnHandleCreated(e);
     if (_manager != null)
     {
         _manager.Dispose();
     }
     if (!this.DesignMode)
     {
         _manager = new ScrollBarManager(this);
     }
 }
Esempio n. 5
0
 //protected override void OnSizeChanged(EventArgs e)
 //{
 //    base.OnSizeChanged(e);
 //    if (this.DesignMode)
 //    {
 //        if (_manager != null)
 //        {
 //            _manager.Dispose();
 //        }
 //        _manager = new ScrollBarManager(this);
 //    }
 //}
 //protected override void OnLocationChanged(EventArgs e)
 //{
 //    base.OnLocationChanged(e);
 //    if (this.DesignMode)
 //    {
 //        if (_manager != null)
 //        {
 //            _manager.Dispose();
 //        }
 //        _manager = new ScrollBarManager(this);
 //    }
 //}
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_manager != null)
         {
             _manager.Dispose();
             _manager = null;
         }
     }
     base.Dispose(disposing);
 }
Esempio n. 6
0
 public ScrollBarMaskControl(ScrollBarManager owner)
     : base(owner.OwnerHWnd)
 {
     _owner = owner;
 }
 protected override void OnHandleCreated(EventArgs e)
 {
     base.OnHandleCreated(e);
     if (this._manager != null)
     {
         this._manager.Dispose();
     }
     this._manager = new ScrollBarManager(this);
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing && (this._manager != null))
     {
         this._manager.Dispose();
         this._manager = null;
     }
     base.Dispose(disposing);
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         this._owner = null;
     }
     base.Dispose(disposing);
 }
 public ScrollBarMaskControl(ScrollBarManager owner)
     : base(owner.OwnerHWnd)
 {
     this._owner = owner;
 }