コード例 #1
0
        protected override void Arrange()
        {
            base.Arrange();

            Steps[0].SetIsValid(true);
            changeListener  = new PropertyChangedListener(this.Wizard);
            commandListener = new CanExecuteChangedListener();
            commandListener.Add(this.Wizard.NextCommand);
            commandListener.Add(this.Wizard.PreviousCommand);
        }
コード例 #2
0
        protected override void Arrange()
        {
            base.Arrange();

            Steps[1].SetIsValid(true);
            Steps[2].SetIsValid(true);

            commandListener = new CanExecuteChangedListener();
            commandListener.Add(this.Wizard.FinishCommand);
        }
コード例 #3
0
        protected override void Arrange()
        {
            base.Arrange();

            configurationModel = Container.Resolve <ConfigurationSourceModel>();
            AddApplicationBlockCommandAttribute attribute = new AddApplicationBlockCommandAttribute("appSettings", typeof(AppSettingsSection));

            addBlockCommand = Container.Resolve <AddApplicationBlockCommand>(
                new DependencyOverride <ConfigurationSourceModel>(configurationModel),
                new DependencyOverride <AddApplicationBlockCommandAttribute>(attribute));

            executeChagnedListener = new CanExecuteChangedListener();
            executeChagnedListener.Add(addBlockCommand);
        }