/// <summary> /// Creates a new calendar home page/main wizard. /// </summary> public static IWizardNavigator CreateHomePageWizard(CalendarDesigner designer) { IServiceProvider provider = designer.ReportItem.Site; IWizardNavigator group = WizardStep.CreateaWizardNavigator(null, null, provider); group.Steps.Add(new WizardStep(group, new CalendarGeneralPage(designer), Resources.CalendarSmartPanelGeneralPageTitle, Resources.CalendarSmartPanelGeneralTitle, Resources.General_16)); group.Steps.Add(new WizardStep(group, new CalendarDataPage(designer), Resources.CalendarSmartPanelDataPageTitle, Resources.CalendarSmartPanelDataTitle, Resources.Data_16)); group.Steps.Add(new WizardStep(group, new CalendarDetailGroupPage(designer), Resources.CalendarSmartPanelDetailGroupingPageTitle, Resources.CalendarSmartPanelDetailGroupingTitle, Resources.General_16)); group.Steps.Add(new WizardStep(group, new CalendarFiltersPage(designer), Resources.CalendarSmartPanelFiltersPageTitle, Resources.CalendarSmartPanelFiltersTitle, Resources.Filters_16)); group.Steps.Add(new WizardStep(group, new CalendarEventAppearancePage(designer), Resources.CalendarSmartPanelEventAppearancePageTitle, Resources.CalendarSmartPanelEventAppearanceTitle, Resources.EventAppearance_16)); group.Steps.Add(new WizardStep(group, new CalendarAppearancePage(designer), Resources.CalendarSmartPanelAppearancePageTitle, Resources.CalendarSmartPanelAppearanceTitle, Resources.CalendarAppearance_16)); group.Steps.Add(new WizardStep(group, new CalendarNavigationPage(designer), Resources.CalendarSmartPanelNavigationPageTitle, Resources.CalendarSmartPanelNavigationTitle, Resources.Navigation_16)); group.Steps.Add(new WizardStep(group, new CalendarDataOutputPage(designer), Resources.CalendarSmartPanelDataOutputPageTitle, Resources.CalendarSmartPanelDataOutputTitle, Resources.Data_Output_16)); return(group); }
public WizardStepMenuItemViewOpener(IWizardNavigator <TWizardContext> navigator, IEventAggregator eventAggregator, IWizardStepProgressService <TWizardContext> wizardStepProgressService, IWizardStepsService wizardService) { if (navigator == null) { throw new ArgumentNullException("navigator"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } if (wizardStepProgressService == null) { throw new ArgumentNullException("wizardStepProgressService"); } if (wizardService == null) { throw new ArgumentNullException("wizardService"); } this.WizardService = wizardService; this.Navigator = navigator; this.EventAggregator = eventAggregator; this.EventAggregator.GetEvent <WizardStepCompleted>().Subscribe(OnWizardStepCompleted, true); this.WizardStepProgressService = wizardStepProgressService; this.PropertyChanged += WizardStepMenuItemViewOpenerPropertyChanged; }
public WizardViewModel(IWizardStepsService wizardStepsService, IWizardNavigator <TWizardContext> wizardNavigator, IWizardStepProgressService <TWizardContext> wizardStepProgressService, IEventAggregator eventAggregator) { this.eventAggregator = eventAggregator; if (wizardStepsService == null) { throw new ArgumentNullException("wizardStepsService"); } if (wizardNavigator == null) { throw new ArgumentNullException("wizardNavigator"); } if (wizardStepProgressService == null) { throw new ArgumentNullException("wizardStepProgressService"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } this.eventAggregator.GetEvent <WizardStepViewActivated>().Subscribe(SetViewAsActive); this.WizardStepsService = wizardStepsService; this.WizardNavigator = wizardNavigator; this.WizardStepProgressService = wizardStepProgressService; this.SaveCommand = new DelegateCommand(Save, CanSave); this.ResetCommand = new DelegateCommand(Reset); this.PreviousStepCommand = new DelegateCommand(MoveStepPreviousStep); this.NextStepCommand = new DelegateCommand(MoveStepForward, CanGoNext); }
protected NavigationCommand(IWizardNavigator <T> navigator) { if (navigator == null) { throw new ArgumentNullException("navigator"); } this.navigator = navigator; }
/// <summary> /// Creates and returns calendar navigation page /// </summary> public static IWizardNavigator CreateCalendarNavigationPage(CalendarDesigner designer) { IServiceProvider provider = designer.ReportItem.Site; IWizardNavigator group = WizardStep.CreateaWizardNavigator(null, null, provider); group.Steps.Add(new WizardStep(group, new CalendarNavigationPage(designer), Resources.CalendarSmartPanelNavigationPageTitle, Resources.CalendarSmartPanelNavigationTitle, Resources.Navigation_16)); return(group); }
public Bookmark(IWizardNavigator <T> navigator, T step) { if (step == null) { throw new ArgumentNullException("step"); } this.step = step; this.navigator = navigator; }
protected BaseWizard(WizardStepCollection steps, IWizardNavigator <T> navigator) { if (steps == null) { this._steps = new WizardStepCollection(); } else { this._steps = steps; } this._navigator = navigator ?? throw new ArgumentNullException("navigator"); }
/// <summary> /// Creates and returns the child page of calendar appearance page. /// </summary> public static IWizardNavigator CreateCalendarAppearanceChildPage(CalendarDesigner designer) { IWizardNavigator group = WizardStep.CreateaWizardNavigator(null, null, designer.ReportItem.Site); group.Steps.Add(new WizardStep(group, new CalendarMonthAppearancePage(designer), Resources.CalendarSmartPanelMonthTitleAppearancePageTitle, Resources.MonthAppearance_16)); group.Steps.Add(new WizardStep(group, new CalendarDayAppearancePage(designer), Resources.CalendarSmartPanelDayAppearancePageTitle, Resources.DayAppearance_16)); group.Steps.Add(new WizardStep(group, new CalendarDayHeadersAppearancePage(designer), Resources.CalendarSmartPanelDayHeadersAppearancePageTitle, Resources.DayHeadersAppearance_16)); group.Steps.Add(new WizardStep(group, new CalendarWeekendAppearancePage(designer), Resources.CalendarSmartPanelWeekendAppearancePageTitle, Resources.WeekendAppearance_16)); group.Steps.Add(new WizardStep(group, new CalendarFillerDayAppearancePage(designer), Resources.CalendarSmartPanelFillerDayAppearancePageTitle, Resources.FillerDayAppearance_16)); return(group); }
public void Init() { //Create steps this.steps = new WizardStepCollection(); this.steps.Add(new WizardStep("1", "Login Info", false)); this.steps.Add(new WizardStep("2", "User Info", false)); this.steps.Add(new WizardStep("3", "Profile Info", false)); this.steps.Add(new WizardStep("4", "Account Info", false)); this.steps.Add(new WizardStep("5", "Summary", false)); Assert.IsTrue(this.steps.Count == 5); //Create navigatro this.navigator = new WizardNavigator <WizardStep>(this.steps, null); Assert.IsTrue(this.navigator != null); Assert.IsTrue(!this.navigator.Started); //Create Wizard //this.wizard = new Wizard<Step>(this.steps, this.navigator); Assert.IsTrue(this.wizard != null); //Test wizard indexer (access step by it's id) Assert.IsTrue(this.wizard["1"].Id == this.steps[0].Id); }
public NextNavigationCommand(IWizardNavigator <WizardStep> navigator) : base(navigator) { }
public LinearWizard(WizardStepCollection steps, IWizardNavigator <WizardStep> navigator) : base(steps, navigator) { }
public FinishNavigationCommand(IWizardNavigator <WizardStep> navigator) : base(navigator) { }
public PreviousNavigationCommand(IWizardNavigator <WizardStep> navigator) : base(navigator) { }