30 lines
601 B
C#
30 lines
601 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Windows.Input;
|
|||
|
|
|
|||
|
|
namespace DatabaseImport
|
|||
|
|
{
|
|||
|
|
public class WaitCursor : IDisposable
|
|||
|
|
{
|
|||
|
|
private Cursor _previousCursor;
|
|||
|
|
|
|||
|
|
public WaitCursor()
|
|||
|
|
{
|
|||
|
|
_previousCursor = Mouse.OverrideCursor;
|
|||
|
|
|
|||
|
|
Mouse.OverrideCursor = Cursors.Wait;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// #region IDisposable Members
|
|||
|
|
|
|||
|
|
public void Dispose()
|
|||
|
|
{
|
|||
|
|
Mouse.OverrideCursor = _previousCursor;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// #endregion
|
|||
|
|
}
|
|||
|
|
}
|