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