예제 #1
0
 /// <summary>
 /// Notifies a page that it is ready to and allowed to perform automatic redirection using the wizard directly
 /// </summary>
 /// <param name="wizardPage"></param>
 /// <param name="previousPage"></param>
 /// <param name="location"></param>
 /// <param name="reason"></param>
 /// <param name="throwExceptions"></param>
 /// <returns></returns>
 public bool NotifyPageItIsReadyToPerformRedirections(IWizardPage wizardPage, IWizardPage previousPage, WizardNavigationLocation location, WizardNavigationReasons reason, bool throwExceptions)
 {
     if (wizardPage != null)
     {
         try
         {
             wizardPage.ReadyToPerformRedirections(previousPage, location, reason);
             return(true);
         }
         catch (Exception ex)
         {
             Trace.WriteLine(ex);
             if (throwExceptions)
             {
                 throw new Exception(ex.Message, ex);
             }
         }
     }
     return(false);
 }
예제 #2
0
		/// <summary>
		/// Notifies a page that it is ready to and allowed to perform automatic redirection using the wizard directly
		/// </summary>
		/// <param name="wizardPage"></param>
		/// <param name="previousPage"></param>
		/// <param name="location"></param>
		/// <param name="reason"></param>
		/// <param name="throwExceptions"></param>
		/// <returns></returns>
		public bool NotifyPageItIsReadyToPerformRedirections(IWizardPage wizardPage, IWizardPage previousPage, WizardNavigationLocation location, WizardNavigationReasons reason, bool throwExceptions)
		{
			if (wizardPage != null)
			{
				try
				{
					wizardPage.ReadyToPerformRedirections(previousPage, location, reason); 
					return true;
				}
				catch(Exception ex)
				{
					Trace.WriteLine(ex);
					if (throwExceptions)
						throw new Exception(ex.Message, ex);
				}
			}
			return false;
		}