protected override void tsb_Edit_Click(object sender, EventArgs e) { if (typedocsGridView.RowCount > 0) { try { frm_EditTypeDocs frm_edittypedocs = new frm_EditTypeDocs((int)typedocsGridView.SelectedRows[0].Cells[0].Value, "EDIT", "EXT"); 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", "EXT"); frm_edittypedocs.ShowDialog(); this.SetProperties(); }