/// <summary> /// Cancels this instance. /// </summary> void Cancel() { var isCancelled = false; GuardBusinessObject(() => isCancelled = BusinessObject.Cancel()); if (isCancelled) { RegionMgr.RequestNavigate(RegionNames.MainContent, new Uri(ViewNames.MainDataSetView, UriKind.Relative)); } }
void Cancel() { var isCancelled = !CanMoveToPreviousStep; if (!isCancelled) { GuardBusinessObject(() => isCancelled = BusinessObject.Cancel()); } if (isCancelled) { NavigateOut(); } }