protected virtual void Dispose(bool disposing) { if (_isDisposed) { return; } if (disposing) { if (_bottomButton != null) { _bottomButton.Unrealize(); _bottomButton = null; } if (_box != null) { _box.Unrealize(); _box = null; } if (_progress != null) { _progress.Unrealize(); _progress = null; } if (_progressLabel != null) { _progressLabel.Unrealize(); _progressLabel = null; } if (_popUp != null) { _layout.Unrealize(); _layout = null; _popUp.BackButtonPressed -= BackButtonPressedHandler; _popUp.Unrealize(); _popUp = null; } } _isDisposed = true; }
protected virtual void Dispose(bool disposing) { if (_isDisposed) { return; } if (disposing) { if (_firstButton != null) { _firstButton.Unrealize(); _firstButton = null; } if (_secondButton != null) { _secondButton.Unrealize(); _secondButton = null; } if (_nativeContent != null) { _nativeContent.Unrealize(); _nativeContent = null; } if (_popUp != null) { _layout.Unrealize(); _layout = null; _popUp.Unrealize(); _popUp = null; } } _isDisposed = true; }