Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

using System;
using System.Windows.Forms;

namespace EA_ReqPro
{
   internal class CCursor : IDisposable
   {
      private Cursor saved = null;

      public CCursor( Cursor newCursor )
      {
         saved = Cursor.Current;

         Cursor.Current = newCursor;
      }

      public void Dispose()
      {
         Cursor.Current = saved;
      }
   }

   internal class CWaitCursor : CCursor
   {
      public CWaitCursor() : base( Cursors.WaitCursor ) {}
   }

}