/// <summary> /// Starts the global spinning in ArcMap and updates the message on the status bar. /// </summary> /// <param name="cursor">The cursor.</param> /// <param name="title">The title.</param> /// <param name="description">The description.</param> /// <param name="statusMessage">The status message.</param> public void Play(MouseCursorImage cursor, string title, string description, string statusMessage) { _Dialog.CancelEnabled = true; _Dialog.Description = description; _Dialog.Title = title; _Dialog.ShowDialog(); this.Play(cursor, statusMessage); }
/// <summary> /// Starts the global spinning in ArcMap and updates the message on the status bar. /// </summary> /// <param name="cursor">The cursor.</param> /// <param name="statusMessage">The status message.</param> public void Play(MouseCursorImage cursor, string statusMessage) { if (_MouseCursorReverter != null) { _MouseCursorReverter.Dispose(); } _MouseCursorReverter = new MouseCursorReverter(cursor); IAnimationProgressor animation = _Application.StatusBar.ProgressAnimation; animation.Show(); _Application.StatusBar.PlayProgressAnimation(true); _Application.StatusBar.Message[0] = statusMessage; }
/// <summary> /// Initializes a new instance of the <see cref="MouseCursorReverter" /> class. /// </summary> /// <param name="cursor">The cursor.</param> public MouseCursorReverter(MouseCursorImage cursor) : this((int)cursor) { }