Exemplo n.º 1
0
        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)
 {
 }
Exemplo n.º 4
0
 private void OnCancel(object sender, EventArgs e)
 {
     DialogResult = DialogResult.Cancel;
     Close();
     _collectionInfo = null;
 }
Exemplo n.º 5
0
 public void Init(NewCollectionSettings collectionInfo)
 {
     _collectionInfo = collectionInfo;
 }