private void CreateWizard()
        {
            selectFilesPage   = new SelectFilesPage();
            selectFolderPage  = new SelectFolderPage();
            welcomePage       = new WelcomePage(selectFilesPage, selectFolderPage);
            selectMappingPage = new SelectMappingPage();
            optionsPage       = new OptionsPage();
            convertFilesPage  = new ConvertFilesPage(selectFilesPage, selectMappingPage);

            welcomePage.Updated       += new EventHandler(WizardPageUpdated);
            selectFolderPage.Updated  += new EventHandler(WizardPageUpdated);
            selectFilesPage.Updated   += new EventHandler(WizardPageUpdated);
            selectMappingPage.Updated += new EventHandler(WizardPageUpdated);
            optionsPage.Updated       += new EventHandler(WizardPageUpdated);
            convertFilesPage.Updated  += new EventHandler(WizardPageUpdated);

            selectFolderPage.PreviousPage  = welcomePage;
            selectFolderPage.NextPage      = selectMappingPage;
            selectFilesPage.PreviousPage   = welcomePage;
            selectFilesPage.NextPage       = selectMappingPage;
            selectMappingPage.PreviousPage = selectFilesPage;
            selectMappingPage.NextPage     = optionsPage;
            optionsPage.PreviousPage       = selectMappingPage;
            optionsPage.NextPage           = convertFilesPage;
            convertFilesPage.PreviousPage  = optionsPage;

            ShowWizardPage(welcomePage);
        }
 public ConvertFilesPage(SelectFilesPage selectFilesPage, SelectMappingPage selectMappingPage)
 {
     InitializeComponent();
     this.Dock              = DockStyle.Fill;
     canMoveNext            = false;
     canMovePrevious        = true;
     canExitApp             = true;
     this.selectFilesPage   = selectFilesPage;
     this.selectMappingPage = selectMappingPage;
 }
Example #3
0
 public WelcomePage(SelectFilesPage selectFilesPage, SelectFolderPage selectFolderPage)
 {
     InitializeComponent();
     this.selectFilesPage  = selectFilesPage;
     this.selectFolderPage = selectFolderPage;
     if (Settings.Default.UseInputFolder)
     {
         radioButtonInputFolder.Checked = true;
     }
     else
     {
         radioButtonInputFiles.Checked = true;
     }
 }