private void DGVTempProd_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 2 && e.RowIndex >= 0) { cls_product prod = tempProductlist.get_productlist()[e.RowIndex]; prod.setQty(prod.getQty() - 1); if (prod.getQty() <= 0) { tempProductlist.get_productlist().Remove(prod); } Refresh_TempProduct_DGV(); } }
private void btnESC_Click(object sender, EventArgs e) { cproduct.setQty(0); this.Close(); }