idTech4.UI.idUserInterface.Dispose C# (CSharp) Method

Dispose() private method

private Dispose ( bool disposing ) : void
disposing bool
return void
		private void Dispose(bool disposing)
		{
			if(this.Disposed == true)
			{
				throw new ObjectDisposedException(this.GetType().Name);
			}

			if(disposing == true)
			{
				_state = null;
				_desktop = null;
				_bindHandler = null;
			}

			_disposed = true;
		}
		#endregion

Same methods

idUserInterface::Dispose ( ) : void

Usage Example

示例#1
0
        public void Remove(idUserInterface ui)
        {
            if (_guiList.Contains(ui) == true)
            {
                _guiList.Remove(ui);
            }

            if (ui.Disposed == false)
            {
                ui.Dispose();
            }
        }
All Usage Examples Of idTech4.UI.idUserInterface::Dispose