private void languageComboBox_SelectedIndexChanged(object sender, EventArgs e) { string filename = InstallConfiguration.GetEula((languageComboBox.SelectedIndex == 1) ? "de_" : string.Empty); if (!String.IsNullOrEmpty(filename)) { try { this.richTextBox.LoadFile(filename); acceptCheckBox.Enabled = true; } catch (IOException ex) { this.richTextBox.Lines = new string [] { filename + ":", ex.Message }; } } richTextBox.SelectionLength = richTextBox.SelectionStart = 0; richTextBox.ScrollToCaret(); }
private void AddInstallControls() { // // Add EULA control if an EULA file was specified. // string filename = InstallConfiguration.GetEula(string.Empty); if (!String.IsNullOrEmpty(filename)) { Form.ContentControls.Add(Program.CreateEULAControl()); } if ((!string.IsNullOrEmpty(InstallConfiguration.Sql)) && (File.Exists(InstallConfiguration.Sql) || ((!InstallConfiguration.Sql.Contains("\\")) && File.Exists(Path.Combine(Application.StartupPath, InstallConfiguration.Sql.TrimStart('\\')))))) { Form.ContentControls.Add(Program.CreateSqlControl()); } Form.ContentControls.Add(Program.CreateDeploymentTargetsControl()); //Form.ContentControls.Add(Program.CreateOptionsControl()); Form.ContentControls.Add(Program.CreateProcessControl()); }