init
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user