public TestWizard(bool showWelcome) : this()
        {
            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;

            SetLocalizedStrings();

            _wizardControl.AfterInitialization();
        }
 public void Init(Action <UserControl, bool> SetButtonState, NewCollectionSettings collectionInfo, string destinationDirectory)
 {
     _setNextButtonState   = SetButtonState;
     _collectionInfo       = collectionInfo;
     _destinationDirectory = destinationDirectory;
 }
 public CollectionSettings(NewCollectionSettings collectionInfo)
     : this(collectionInfo.PathToSettingsFile)
 {
 }
 private void OnCancel(object sender, EventArgs e)
 {
     DialogResult = DialogResult.Cancel;
     Close();
     _collectionInfo = null;
 }
Exemple #5
0
 public void Init(NewCollectionSettings collectionInfo)
 {
     _collectionInfo = collectionInfo;
 }