private void btnAdd_Click(object sender, EventArgs e) { frmProgramFunctionMasterAddEdit frm = new frmProgramFunctionMasterAddEdit(); frm.ShowDialog(); Search(); }
private void btnEdit_Click(object sender, EventArgs e) { if (viewDuLieu.RowCount > 0) { frmProgramFunctionMasterAddEdit frm = new frmProgramFunctionMasterAddEdit(viewDuLieu.GetRowCellValue(viewDuLieu.FocusedRowHandle, "Id").ToString()); DialogResult dr = frm.ShowDialog(); if (dr == DialogResult.OK) { Search(); } } }