Exemplo 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);
        }
Exemplo n.º 2
0
 public ConvertFilesPage(SelectFilesPage selectFilesPage, SelectMappingPage selectMappingPage)
 {
     InitializeComponent();
     this.Dock              = DockStyle.Fill;
     canMoveNext            = false;
     canMovePrevious        = true;
     canExitApp             = true;
     this.selectFilesPage   = selectFilesPage;
     this.selectMappingPage = selectMappingPage;
 }