void AreaMenuAddClick(object sender, EventArgs e) { AddEditLCDArea d = new AddEditLCDArea(Configuration, -1); if (d.ShowDialog(this) == DialogResult.OK) { ShowLCDAreas(); } }
void AreaMenuEditClick(object sender, EventArgs e) { if (LCDArea != null) { AddEditLCDArea d = new AddEditLCDArea(Configuration, Array.IndexOf(Configuration.Areas, LCDArea)); if (d.ShowDialog(this) == DialogResult.OK) { ShowLCDAreas(); } } }