This module provides UI state management utilities for a WPF-based database import application. It consists of two components: WaitCursor, a disposable utility class for temporarily displaying a wait cursor with automatic restoration, and App, the main application class that manages application-wide busy states, provides lazy-initialized access to an ISO13499FileDb instance, and handles thread-safe UI manipulation through dispatcher-aware methods.
2. Public Interface
WaitCursor Class
Member
Signature
Description
Constructor
public WaitCursor()
Saves the current Mouse.OverrideCursor value to _previousCursor, then sets Mouse.OverrideCursor to Cursors.Wait.
Dispose
public void Dispose()
Restores the cursor by setting Mouse.OverrideCursor back to the saved _previousCursor value.