Exemple #1
0
        private void UpdateStepsToSkip(CommunitySubscriptionWizardStep step, Boolean add)
        {
            List <CommunitySubscriptionWizardStep> toSkip = View.SkipSteps;

            if (add && !toSkip.Contains(step))
            {
                toSkip.Add(step);
            }
            else if (!add && toSkip.Contains(step))
            {
                toSkip.Remove(step);
            }
            View.SkipSteps = toSkip;
        }
Exemple #2
0
        public void MoveToPreviousStep(CommunitySubscriptionWizardStep step)
        {
            if (UserContext.isAnonymous)
            {
                View.DisplaySessionTimeout();
            }
            else
            {
                switch (step)
                {
                case CommunitySubscriptionWizardStep.SubscriptionsSettings:
                    View.GotoStep(CommunitySubscriptionWizardStep.SelectCommunities);
                    break;

                case CommunitySubscriptionWizardStep.RemoveSubscriptions:
                    if (View.SkipSteps.Contains(CommunitySubscriptionWizardStep.SubscriptionsSettings))
                    {
                        View.GotoStep(CommunitySubscriptionWizardStep.SelectCommunities);
                    }
                    else
                    {
                        View.GotoStep(CommunitySubscriptionWizardStep.SubscriptionsSettings);
                    }
                    break;

                case CommunitySubscriptionWizardStep.Summary:
                    if (View.SkipSteps.Contains(CommunitySubscriptionWizardStep.RemoveSubscriptions))
                    {
                        if (View.SkipSteps.Contains(CommunitySubscriptionWizardStep.SubscriptionsSettings))
                        {
                            View.GotoStep(CommunitySubscriptionWizardStep.SelectCommunities);
                        }
                        else
                        {
                            View.GotoStep(CommunitySubscriptionWizardStep.SubscriptionsSettings);
                        }
                    }
                    else
                    {
                        View.GotoStep(CommunitySubscriptionWizardStep.RemoveSubscriptions);
                    }
                    break;

                case CommunitySubscriptionWizardStep.Errors:
                    View.GotoStep(CommunitySubscriptionWizardStep.Summary);
                    break;
                }
            }
        }
Exemple #3
0
        public void MoveToNextStep(CommunitySubscriptionWizardStep step)
        {
            switch (step)
            {
            case CommunitySubscriptionWizardStep.SelectCommunities:
                MoveFromCommunities();
                break;

            case CommunitySubscriptionWizardStep.SubscriptionsSettings:
                MoveFromSubscriptions();
                break;

            case CommunitySubscriptionWizardStep.RemoveSubscriptions:
                MoveToSummary();
                break;

            case CommunitySubscriptionWizardStep.Summary:
                break;
            }
        }