Exemplo n.º 1
0
        /// <summary>
        /// Builds a gathering arguments Wizard
        /// </summary>
        /// <param name="provider">IServiceProvider</param>
        /// <param name="wizardConfig">Wizard Configuration</param>
        /// <param name="basePath">Configuration File Base Path</param>
        public WizardForm(IServiceProvider provider, Configuration.Wizard wizardConfig, string basePath)
        {
            if (provider == null)
            {
                throw new ArgumentNullException("provider");
            }
            this.serviceProvider = provider;
            if (wizardConfig == null)
            {
                throw new ArgumentNullException("wizardConfig");
            }

            this.basePath     = basePath;
            this.wizardConfig = wizardConfig;
            gatheringResult   = ExecutionResult.Cancel;
            ((ISupportInitialize)this).BeginInit();
            // This call is required by the Windows Form Designer.
            InitializeComponent();
            ((ISupportInitialize)this).EndInit();
        }
Exemplo n.º 2
0
 public WizardData(Configuration.Wizard wizardConfig)
 {
     this.wizardConfig = wizardConfig;
     this.typeAliases  = new TypeAliasAdapterDictionary(this.wizardConfig.Types);
 }