// // MessagesFiles menu section // private void SelectFolder(object sender, EventArgs e) { var folderBrowserDialog = new FolderBrowserDialog(); folderBrowserDialog.SelectedPath = Properties.Settings.Default.WorkingFolder; if (folderBrowserDialog.ShowDialog() == DialogResult.OK) { _workingFolder = folderBrowserDialog.SelectedPath; _filesFinder = new ResourceFilesFinder(_workingFolder); _languageFilesList = _filesFinder.LangFiles; BuildLanguageMenu(); } }
private void LanguagesFromSettings(object sender, EventArgs e) { _workingFolder = Properties.Settings.Default.WorkingFolder; if (!Directory.Exists(_workingFolder)) return; _filesFinder = new ResourceFilesFinder(_workingFolder); _languageFilesList = _filesFinder.LangFiles; BuildLanguageMenu(); if (!selectAllLanguagesToolStripMenuItem.Checked) selectAllLanguagesToolStripMenuItem.PerformClick(); }