/// <summary> /// Disposes of the resources used by this LoginProgressDialog instance. /// <param name="Disposed">Was this resource disposed explicitly?</param> /// </summary> protected virtual void Dispose(bool Disposed) { if (Disposed) { if (m_ProgressBar != null) { m_ProgressBar.Dispose(); } // Prevent the finalizer from calling ~LoginProgressDialog, since the object is already disposed at this point. GC.SuppressFinalize(this); } else { m_Logger.Error("LoginProgressDialog not explicitly disposed!"); } }