public override void ApplySettings() { var language = UILanguage.GetLanguageByName(comboBox1.Text); string path = Path.Combine(Application.StartupPath, "MUI", language.PackIdentifier + ".xml"); if (!File.Exists(path)) { MessageBox.Show(string.Format("The language pack for {0} is not installed for the main application of LiteDevelop. Therefore some parts of the program might contain english texts instead of texts in the selected language.", comboBox1.Text), "LiteDevelop", MessageBoxButtons.OK, MessageBoxIcon.Warning); } _settings.SetValue("Application.LanguageID", language.PackIdentifier); }
public override void ApplySettings() { _settings.SetValue("Projects.DefaultProjectsPath", defaultPathTextBox.Text); _settings.SetValue("Projects.ShowOutputWhenBuilding", outputWindowCheckBox.Checked); _settings.SetValue("Projects.ShowErrorsWhenBuildFailed", errorListCheckBox.Checked); }