Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
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;
     }
 }