protected void OnAddItemClick(object sender, EventArgs e) { TFlexSpecSectionDialog dialog = new TFlexSpecSectionDialog(sectionsRepo); if (dialog.ShowDialog() == DialogResult.OK) { AddRow(dialog.TFlexSpecSection); } }
protected void OnEditItemClick(object sender, EventArgs e) { DataGridViewRow row = scene.SelectedRows[0]; int id = (int)row.Tag; SEPO_TFLEX_SPEC_SECTIONS section = sectionsRepo.GetById(id); TFlexSpecSectionDialog dialog = new TFlexSpecSectionDialog(section); if (dialog.ShowDialog() == DialogResult.OK) { UpdateRow(row, section); } }