protected override void tsb_Edit_Click(object sender, EventArgs e) { if (docsViewDataGridView.RowCount > 0) { try { frm_EditDocument frm_editdocument = new frm_EditDocument((int)docsViewDataGridView.SelectedRows[0].Cells[0].Value, "EDIT"); if (frm_editdocument.ShowDialog() == DialogResult.OK) SetProperties(); } catch { } } }
protected override void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { frm_EditDocument frm_newdocument = new frm_EditDocument(0, "INS"); frm_newdocument.ShowDialog(); SetProperties(); }