private void addTranslatedTextsMenu_Click(object sender, EventArgs e)
{
// Initialize the dialog
CustomSymbolText dialog = new CustomSymbolText(symbolDB, true);
dialog.LangId = controller.GetDescriptionLanguage();
// Show the dialog.
DialogResult result = dialog.ShowDialog(this);
// Apply the changes
if (result == DialogResult.OK) {
controller.AddDescriptionTexts(dialog.CustomSymbolTexts, dialog.SymbolNames);
controller.SetDescriptionLanguage(dialog.LangId);
}
dialog.Dispose();
}