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