Exemple #1
0
        public static void SwapStepsOrders(WelcomeTourStep currentStep, WelcomeTourStep versusStep)
        {
            int tmpSaveOrder = currentStep.Order;

            currentStep.Order = versusStep.Order;
            versusStep.Order  = tmpSaveOrder;

            currentStep.Save();
            versusStep.Save();
        }
Exemple #2
0
        private static Dictionary <String, String> CreateStepBody(WelcomeTourStep stepToBuild)
        {
            var newStepString = new Dictionary <String, String>();

            newStepString.Add("element", GetStringSelector(stepToBuild.ContentIdentifier));
            newStepString.Add("content", stepToBuild.Content);
            newStepString.Add("title", stepToBuild.Title);
            newStepString.Add("placement", GetStepDescriptionBoxPlacement(stepToBuild.ContentIdentifier));
            newStepString.Add("path", GetSiteUrlForStep(stepToBuild.ContentIdentifier));

            return(newStepString);
        }