public void Dispose() { if (_defaultInstance != null) { _defaultInstance.Dispose(); _defaultInstance = null; } }
public void Hide() { DefaultInstance.Hide(); if (!_config.IsReusable) { _defaultInstance.Dispose(); _defaultInstance = null; } }
public void Hide() { DefaultInstance.Hide(); if (!_config.IsReusable) { // _defaultInstance is dispoded by not here but the DefaultLoading. // Because null exception occurs when the dialog set this contentview. //_defaultInstance.Dispose(); _defaultInstance = null; } }
public void Dispose() { _defaultInstance?.Dispose(); _defaultInstance = null; }