예제 #1
0
        public ActionResult Index()
        {
            var model = new StepIndexModel();

            var panel = new Panel();

            panel.ConfigLocation();
            var form = FormHorizontal.Create(model, Url.Location(new Func <StepIndexModel, ActionResult>(Next)));

            panel.Append(form);

            return(new HtmlResult(panel.CreateGrid()));
        }
예제 #2
0
        public ActionResult Next(StepIndexModel model)
        {
            var nextModel = new StepNextModel();

            nextModel.Name = model.Name;

            var panel = new Panel();

            panel.ConfigLocation();
            var form = FormHorizontal.Create(nextModel, Url.Location(new Func <StepNextModel, ActionResult>(Finish)));

            panel.Append(form);

            return(new HtmlResult(panel.CreateGrid()));
        }