/// <summary> /// Checks if Autocad process is running. If not continues code runing in other /// offer user to close AutoCad instance. /// </summary> public void CheckIfAutoCadIsRunning() { if (!CommonHelper.IsAutoCadRunning()) { return; } var userChoice = UserNotifier.ShowRetry(Resources.AcadIsRunningMessage); if (DialogResult.Retry == userChoice) { CheckIfAutoCadIsRunning(); } else { throw new OperationCanceledException(Resources.UserSetupCancelation); } }