private void nextButton_Click(object sender, EventArgs e) { if (introPanel.Visible) { introPanel.Visible = false; backButton.Visible = true; if (skipSettingsCheckBox.Checked) { installPanel.Visible = true; nextButton.Text = LanguageUtil.GetCurrentLanguageString("nextButtonInstall", Name, OptionManager.GetLanguage(this)); stepLabel.Text = LanguageUtil.GetCurrentLanguageString("InstallPhase", Name, OptionManager.GetLanguage(this)); stepPictureBox.Image = ImageResource.install_step_6; InstallManager.InitInstallPanel(destinationPathTextBox, availableSpaceLabel1, requiredSpaceLabel1, languageComboBox, OptionManager.GetLanguage(this)); } else { languagePanel.Visible = true; stepLabel.Text = LanguageUtil.GetCurrentLanguageString("LanguagePhase", Name, OptionManager.GetLanguage(this)); stepPictureBox.Image = ImageResource.install_step_2; } } else if (languagePanel.Visible) { languagePanel.Visible = false; lookAndFeelPanel.Visible = true; stepLabel.Text = LanguageUtil.GetCurrentLanguageString("LookAndFeelPhase", Name, OptionManager.GetLanguage(this)); stepPictureBox.Image = ImageResource.install_step_3; } else if (lookAndFeelPanel.Visible) { lookAndFeelPanel.Visible = false; windowPanel.Visible = true; LookFeelUtil.SetLookAndFeel(this, contentContextMenuStrip); LookFeelUtil.SetLookAndFeel(this, contentContextMenuStrip1); stepLabel.Text = LanguageUtil.GetCurrentLanguageString("WindowPhase", Name, OptionManager.GetLanguage(this)); stepPictureBox.Image = ImageResource.install_step_4; } else if (windowPanel.Visible) { windowPanel.Visible = false; internetPanel.Visible = true; stepLabel.Text = LanguageUtil.GetCurrentLanguageString("InternetPhase", Name, OptionManager.GetLanguage(this)); stepPictureBox.Image = ImageResource.install_step_5; } else if (internetPanel.Visible) { internetPanel.Visible = false; installPanel.Visible = true; nextButton.Text = LanguageUtil.GetCurrentLanguageString("nextButtonInstall", Name, OptionManager.GetLanguage(this)); stepLabel.Text = LanguageUtil.GetCurrentLanguageString("InstallPhase", Name, OptionManager.GetLanguage(this)); stepPictureBox.Image = ImageResource.install_step_6; InstallManager.InitInstallPanel(destinationPathTextBox, availableSpaceLabel1, requiredSpaceLabel1, languageComboBox, OptionManager.GetLanguage(this)); } else if (installPanel.Visible) { installPanel.Visible = false; endPanel.Visible = true; backButton.Visible = false; nextButton.Visible = false; cancelButton.Enabled = false; stepLabel.Text = LanguageUtil.GetCurrentLanguageString("EndPhase", Name, OptionManager.GetLanguage(this)); stepPictureBox.Image = ImageResource.install_step_7; Refresh(); if (InstallManager.InstallProcedure(this, installProgressBar, installTextBox, OptionManager.GetLanguage(this))) { nextButton.Text = LanguageUtil.GetCurrentLanguageString("nextButtonStart", Name, OptionManager.GetLanguage(this)); nextButton.Visible = true; nextButton.Click += nextButton_ClickEnd; nextButton.Focus(); } else { backButton.Visible = true; } cancelButton.Text = LanguageUtil.GetCurrentLanguageString("cancelButtonExit", Name, OptionManager.GetLanguage(this)); cancelButton.Enabled = true; } }