Bloom.CollectionCreating.NewCollectionWizard.NewCollectionWizard C# (CSharp) Method

NewCollectionWizard() public method

public NewCollectionWizard ( bool showWelcome ) : System
showWelcome bool
return System
        public NewCollectionWizard(bool showWelcome)
        {
            InitializeComponent();

            if (ReallyDesignMode)
                return;

            _collectionInfo = new NewCollectionSettings();
            _kindOfCollectionPage.Tag = kindOfCollectionControl1;
            kindOfCollectionControl1.Init(SetNextButtonState, _collectionInfo);

            _languageLocationPage.Tag = _languageLocationControl;
            _languageLocationControl.Init(_collectionInfo);

            _collectionNamePage.Tag = _collectionNameControl;
            _collectionNameControl.Init(SetNextButtonState, _collectionInfo, DefaultParentDirectoryForCollections);

            _vernacularLanguagePage.Tag = _vernacularLanguageIdControl;
            _vernacularLanguageIdControl.Init(SetNextButtonState, _collectionInfo);

            _welcomePage.Suppress = !showWelcome;

            //The L10NSharpExtender and this wizard don't get along (they conspire to crash Visual Studio with a stack overflow)
            //so we do all of this by hand
            var chooser = new Button();// new L10NSharp.UI.UILanguageComboBox() { ShowOnlyLanguagesHavingLocalizations = false };
            chooser.Location = new Point(100,100);
            chooser.Size= new Size(50,50);
            chooser.Visible = true;
            chooser.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            //chooser.SelectedValueChanged += new EventHandler(chooser_SelectedValueChanged);
            wizardControl1.Controls.Add(chooser);

            SetLocalizedStrings();

            wizardControl1.AfterInitialization();
        }