public void Resume()
{
// Throw if we are not running
if (_state != ProgressDialogState.Paused)
throw new InvalidOperationException("Timer is not paused.");
// Resume the Timer
_nativeProgressDialog.Timer(PDTIMER.Resume, null);
_state = ProgressDialogState.Running;
}