private void addStringToolStripMenuItem_Click(object sender, EventArgs e) { //Initialize using (AddStringDialog addDlg = new AddStringDialog()) { //Prepare addDlg.StringId = "new_string"; //Show if (addDlg.ShowDialog() == DialogResult.OK) { //Create Entry StringEntry entry = new StringEntry(string.Empty, addDlg.StringId); //Add StringId? if (map.AddStringId(addDlg.StringId) != StringId.Zero) { //Add to container if (englishToolStripMenuItem.Checked) { strings[(StringLocale)englishToolStripMenuItem.Tag].Add(entry); } if (japaneseToolStripMenuItem.Checked) { strings[(StringLocale)japaneseToolStripMenuItem.Tag].Add(entry); } if (germanToolStripMenuItem.Checked) { strings[(StringLocale)germanToolStripMenuItem.Tag].Add(entry); } if (frenchToolStripMenuItem.Checked) { strings[(StringLocale)frenchToolStripMenuItem.Tag].Add(entry); } if (spanishToolStripMenuItem.Checked) { strings[(StringLocale)spanishToolStripMenuItem.Tag].Add(entry); } if (italianToolStripMenuItem.Checked) { strings[(StringLocale)italianToolStripMenuItem.Tag].Add(entry); } if (koreanToolStripMenuItem.Checked) { strings[(StringLocale)koreanToolStripMenuItem.Tag].Add(entry); } if (chineseToolStripMenuItem.Checked) { strings[(StringLocale)chineseToolStripMenuItem.Tag].Add(entry); } if (portugueseToolStripMenuItem.Checked) { strings[(StringLocale)portugueseToolStripMenuItem.Tag].Add(entry); } //Add to list ListViewItem item = new ListViewItem(entry.ID); item.SubItems.Add(UnicodeString.ConvertToReadable(entry.Value)); item.Tag = entry; //Add stringList.Items.Add(item); } } } }