private void btnChiTiet_Click(object sender, EventArgs e) { GetValue(); if (SoLuongYC > SoLuongCT && TrangThai != Convert.ToInt32(TrangThaiSanXuat.ChoXuat)) { var frm = new frmChiTietTachThanhPhamSX(this); frm.ShowDialog(); } }
private void dgvChiTiet_DoubleClick(object sender, EventArgs e) { if (grvChiTiet.FocusedRowHandle < 0) { return; } GetValue(); if (SoLuongYC > SoLuongCT && TrangThai != Convert.ToInt32(TrangThaiSanXuat.ChoXuat)) { var frm = new frmChiTietTachThanhPhamSX(this); frm.ShowDialog(); } }