コード例 #1
0
        /// <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));
            }
        }
コード例 #2
0
        void Cancel()
        {
            var isCancelled = !CanMoveToPreviousStep;

            if (!isCancelled)
            {
                GuardBusinessObject(() => isCancelled = BusinessObject.Cancel());
            }
            if (isCancelled)
            {
                NavigateOut();
            }
        }