Пример #1
0
        private void Button2_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(textBox1.Text))
            {
                MessageBox.Show("The folder is not selected.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            Directory.CreateDirectory(textBox1.Text);

            LanguageFile languageFile = new LanguageFile();

            languageFile.LanguageFileDictionary.CultureString = comboBox1.Text;
            languageFile.SaveFile(
                new FileInfo(textBox1.Text + "/" + comboBox1.Text + ".json"));

            Close();
        }