private void loadFormsForTesting() { var setupWizardLanguageForm = new setupWizard_language(); setupWizardLanguageForm.preLoadData(this); wizardForms.Add(setupWizardLanguageForm); var setupWizardCountryForm = new setupWizard_country(); setupWizardCountryForm.preLoadData(this); wizardForms.Add(setupWizardCountryForm); var setupWizard_platformTypeForm = new setupWizard_platformType(); setupWizard_platformTypeForm.preLoadData(this); wizardForms.Add(setupWizard_platformTypeForm); var setupWizard_ServerAddressForm = new setupWizard_ServerAddress(); setupWizard_ServerAddressForm.preLoadData(this); wizardForms.Add(setupWizard_ServerAddressForm); var setupWizard_signInForm = new setupWizard_signIn(); setupWizard_signInForm.preLoadData(this); wizardForms.Add(setupWizard_signInForm); var setupWizard_NewFtpWebSettingsForm = new setupWizard_NewFtpWebSettings(); setupWizard_NewFtpWebSettingsForm.preLoadData(this); wizardForms.Add(setupWizard_NewFtpWebSettingsForm); var setupWizard_createDBForm = new setupWizard_createDB(); setupWizard_createDBForm.preLoadData(this); wizardForms.Add(setupWizard_createDBForm); var setupWizard_addOnsForm = new setupWizard_addOns(); setupWizard_addOnsForm.preLoadData(this); wizardForms.Add(setupWizard_addOnsForm); var setupWizard_createAdminAccountForm = new setupWizard_createAdminAccount(); setupWizard_createAdminAccountForm.preLoadData(this); wizardForms.Add(setupWizard_createAdminAccountForm); var setupWizard_DiagnosticsCrashDataForm = new setupWizard_DiagnosticsCrashData(); setupWizard_DiagnosticsCrashDataForm.preLoadData(this); wizardForms.Add(setupWizard_DiagnosticsCrashDataForm); var setupWizard_settingUpForm = new setupWizard_settingUp(); setupWizard_settingUpForm.preLoadData(this); wizardForms.Add(setupWizard_settingUpForm); var setupWizard_finnishForm = new setupWizard_finnish(); setupWizard_finnishForm.preLoadData(this); wizardForms.Add(setupWizard_finnishForm); }
public setupWizardMainForm() { if (ExternalLoadEnVars is object) { enVars = ExternalLoadEnVars; } this.SuspendLayout(); InitializeComponent(); this.ResumeLayout(); this.Refresh(); translations = new languageTranslations(enVars); // for testing only loadFormsForTesting(); // loadAssembly() // 'LOAD WIZARD FORMS FORMS ============================================== if (TypesOnAssemblies is object) { setupWizard_language setupWizardLanguageForm = (setupWizard_language)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_language")) as Form); setupWizardLanguageForm.preLoadData(this); wizardForms.Add(setupWizardLanguageForm); setupWizard_country setupWizardCountryForm = (setupWizard_country)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_country")) as Form); setupWizardCountryForm.preLoadData(this); wizardForms.Add(setupWizardCountryForm); setupWizard_platformType setupWizard_platformTypeForm = (setupWizard_platformType)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_platformType")) as Form); setupWizard_platformTypeForm.preLoadData(this); wizardForms.Add(setupWizard_platformTypeForm); setupWizard_ServerAddress setupWizard_ServerAddressForm = (setupWizard_ServerAddress)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_ServerAddress")) as Form); setupWizard_ServerAddressForm.preLoadData(this); wizardForms.Add(setupWizard_ServerAddressForm); setupWizard_signIn setupWizard_signInForm = (setupWizard_signIn)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_signIn")) as Form); setupWizard_signInForm.preLoadData(this); wizardForms.Add(setupWizard_signInForm); setupWizard_NewFtpWebSettings setupWizard_NewFtpWebSettingsForm = (setupWizard_NewFtpWebSettings)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_NewFtpWebSettings")) as Form); setupWizard_NewFtpWebSettingsForm.preLoadData(this); wizardForms.Add(setupWizard_NewFtpWebSettingsForm); setupWizard_createDB setupWizard_createDBForm = (setupWizard_createDB)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_createDB")) as Form); setupWizard_createDBForm.preLoadData(this); wizardForms.Add(setupWizard_createDBForm); setupWizard_addOns setupWizard_addOnsForm = (setupWizard_addOns)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_addOns")) as Form); setupWizard_addOnsForm.preLoadData(this); wizardForms.Add(setupWizard_addOnsForm); setupWizard_createAdminAccount setupWizard_createAdminAccountForm = (setupWizard_createAdminAccount)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_createAdminAccount")) as Form); setupWizard_createAdminAccountForm.preLoadData(this); wizardForms.Add(setupWizard_createAdminAccountForm); setupWizard_DiagnosticsCrashData setupWizard_DiagnosticsCrashDataForm = (setupWizard_DiagnosticsCrashData)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_DiagnosticsCrashData")) as Form); setupWizard_DiagnosticsCrashDataForm.preLoadData(this); wizardForms.Add(setupWizard_DiagnosticsCrashDataForm); setupWizard_settingUp setupWizard_settingUpForm = (setupWizard_settingUp)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_settingUp")) as Form); setupWizard_settingUpForm.preLoadData(this); wizardForms.Add(setupWizard_settingUpForm); setupWizard_finnish setupWizard_finnishForm = (setupWizard_finnish)(Activator.CreateInstance(TypesOnAssemblies.GetType("ConstructionSiteLogistics.Setup.Gui.setupWizard_finnish")) as Form); setupWizard_finnishForm.preLoadData(this); wizardForms.Add(setupWizard_finnishForm); } else { loadFormsForTesting(); } loadTitlesAndSubTitles(); _AlphaGradientPanel1.Name = "AlphaGradientPanel1"; _Panel1.Name = "Panel1"; _forwardPicBtn.Name = "forwardPicBtn"; _Panel2.Name = "Panel2"; _backPicBtn.Name = "backPicBtn"; _PanelMain.Name = "PanelMain"; _PanelBottom.Name = "PanelBottom"; _PanelTop.Name = "PanelTop"; _title.Name = "title"; _subtitle.Name = "subtitle"; }