Castle.MonoRail.Framework.Internal.WizardUtils.GetNextStepName C# (CSharp) Method

GetNextStepName() public static method

Gets the name of the next step.
public static GetNextStepName ( Controller controller ) : String
controller Controller The controller.
return String
		public static String GetNextStepName(Controller controller)
		{
			IRailsEngineContext context = controller.Context;

			String wizardName = WizardUtils.ConstructWizardNamespace(controller);

			int curIndex = (int) context.Session[wizardName + "currentstepindex"];

			IList stepList = (IList) context.Items["wizard.step.list"];

			if ((curIndex + 1) < stepList.Count)
			{
				return (String) stepList[curIndex + 1];
			}

			return null;
		}