BACnet.Explorer.Core.Controls.DevicesTree.OnUnLoad C# (CSharp) Method

OnUnLoad() protected method

protected OnUnLoad ( EventArgs e ) : void
e System.EventArgs
return void
        protected override void OnUnLoad(EventArgs e)
        {
            base.OnUnLoad(e);

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

            if(_refreshTimer != null)
            {
                _refreshTimer.Dispose();
                _refreshTimer = null;
            }

            this._devices = null;
            this.Content = null;
        }