protected void OnAddItemClick(object sender, EventArgs e) { TFlexDocsSignDialog dialog = new TFlexDocsSignDialog(signDocsRepo); if (dialog.ShowDialog() == DialogResult.OK) { AddRow(dialog.DocSign); } }
protected void OnEditItemClick(object sender, EventArgs e) { DataGridViewRow row = scene.SelectedRows[0]; int id = (int)row.Tag; SEPO_TFLEX_SIGN_DOCS docSign = signDocsRepo.GetById(id); TFlexDocsSignDialog dialog = new TFlexDocsSignDialog(docSign, signDocsRepo); if (dialog.ShowDialog() == DialogResult.OK) { UpdateRow(row, dialog.DocSign); } }