Esempio n. 1
0
        private static void Main()
        {
            var culture = new CultureInfo("en-US");

            Thread.CurrentThread.CurrentUICulture = culture;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var installer = new FrmInstaller();
            installer.Add(installer.CreatePage<WelcomePage>());
            installer.Add(installer.CreatePage<LicensePage>());
            installer.Add(installer.CreatePage<FeaturePage>(new FeaturePage.Model()));
            installer.Add(installer.CreatePage<SummaryPage>());
            installer.Add(installer.CreatePage<InstallingPage>());
            installer.Add(installer.CreatePage<FinishPage>());
            Application.Run(installer);

            /* Initialize page models and pages by host model */
            var installerModel = new InstallerModel
                {
                    { typeof(WpfWizardPage<WelcomeWpfPage>), new WelcomePageModel() },
                    { typeof(HtmlWizardPage<WelcomeHtmlPageModel>), new WelcomeHtmlPageModel(Resources.WelcomeHtmlPage) { WelcomePageFlag = false } },
                    { typeof(LicensePage), null },
                    { typeof(FeaturePage), new FeaturePage.Model() },
                    { typeof(SummaryPage), null },
                    { typeof(InstallingPage), null },
                    { typeof(FinishPage), null },
                    { typeof(HtmlWizardPage<HtmlWizardPageModel>), new HtmlWizardPageModel(new Uri("http://www.cnblogs.com/daxnet/p/4612509.html")) }
                };
            Application.Run(new FrmInstaller(installerModel));
        }
Esempio n. 2
0
        private static void Main()
        {
            var culture = new CultureInfo("en-US");

            Thread.CurrentThread.CurrentUICulture = culture;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var installer = new FrmInstaller();
            installer.Add(installer.CreatePage<WelcomePage>());
            installer.Add(installer.CreatePage<LicensePage>());
            installer.Add(installer.CreatePage<FeaturePage>());
            installer.Add(installer.CreatePage<SummaryPage>());
            installer.Add(installer.CreatePage<InstallingPage>());
            installer.Add(installer.CreatePage<FinishPage>());
            Application.Run(installer);
        }
Esempio n. 3
0
        private static void Main()
        {
            var culture = new CultureInfo("en-US");

            Thread.CurrentThread.CurrentUICulture = culture;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var installer = new FrmInstaller();

            installer.Add(installer.CreatePage <WelcomePage>());
            installer.Add(installer.CreatePage <LicensePage>());
            installer.Add(installer.CreatePage <FeaturePage>());
            installer.Add(installer.CreatePage <SummaryPage>());
            installer.Add(installer.CreatePage <InstallingPage>());
            installer.Add(installer.CreatePage <FinishPage>());
            Application.Run(installer);
        }