protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources should be disposed; otherwise, false. |
return | void |
protected override void Dispose(bool disposing)
{
if (disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
}
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(); }