private void buttonDefault_Click(object sender, EventArgs e)
{
string langId = LangId;
// Remove all custom text with the current language.
List<SymbolText> symtexts = customSymbolText[selectedId];
symtexts = symtexts.FindAll(symtext => (symtext.Lang != langId));
if (symtexts.Count == 0) {
customSymbolText.Remove(selectedId);
customSymbolKey.Remove(selectedId);
}
else {
customSymbolText[selectedId] = symtexts;
}
UpdateControlsFromId(selectedId);
listBoxSymbols.Refresh();
}