private void dgvHDN_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex == dgvHDN.Rows.Count - 1) { { frmChitietHDN f1 = new frmChitietHDN(); Handling.FormHandling.PreventFormMultipleTimes("Các Hóa Đơn Nhập", f1, "Hóa đơn nhập"); } } }
private void lblIntoHDN_Click(object sender, EventArgs e) { frmChitietHDN frm = new frmChitietHDN(); Handling.FormHandling.PreventFormMultipleTimes(frm, "Hóa đơn nhập"); }