/// <summary> /// Releases unmanaged and - optionally - managed resources. /// </summary> /// <param name="disposing"> /// <c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only /// unmanaged resources. /// </param> protected virtual void Dispose(bool disposing) { if (disposing) { if (_MouseCursorReverter != null) { _MouseCursorReverter.Dispose(); } _Application.StatusBar.PlayProgressAnimation(false); _Application.StatusBar.Message[0] = null; IAnimationProgressor animation = _Application.StatusBar.ProgressAnimation; animation.Hide(); } }
private void SetProgress(bool play) { IStatusBar statusBar = ArcMap.Application.StatusBar as IStatusBar; IAnimationProgressor animationProgressor = statusBar.ProgressAnimation; if (play) { animationProgressor.Show(); animationProgressor.Play(0, -1, -1); statusBar.set_Message(0, "Processing Related Tables"); } else { animationProgressor.Stop(); animationProgressor.Hide(); statusBar.set_Message(0, null); } }