Beispiel #1
0
 private void LoadContent(InstallerStep currentStep)
 {
     PlaceHolderStep.Controls.Clear();
     PlaceHolderStep.Controls.Add(LoadControl(IOHelper.ResolveUrl(currentStep.UserControl)));
     step.Value       = currentStep.Alias;
     CurrentStepClass = currentStep.Alias;
 }
Beispiel #2
0
        protected void bindStep(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
            {
                InstallerStep i = (InstallerStep)e.Item.DataItem;

                if (!i.HideFromNavigation)
                {
                    Literal _class = (Literal)e.Item.FindControl("lt_class");
                    Literal _name  = (Literal)e.Item.FindControl("lt_name");

                    if (i.Alias == currentStepClass)
                    {
                        _class.Text = "active";
                    }

                    stepCounter++;
                    _name.Text = (stepCounter).ToString() + " - " + i.Name;
                }
                else
                {
                    e.Item.Visible = false;
                }
            }
        }
Beispiel #3
0
        public void GotoLastStep()
        {
            InstallerStep _s = InstallerSteps().Get("theend");

            Response.Redirect("?installStep=" + _s.Alias);
        }
Beispiel #4
0
        public void GotoNextStep(string currentStep)
        {
            InstallerStep _s = InstallerSteps().GotoNextStep(currentStep);

            Response.Redirect("?installStep=" + _s.Alias);
        }