private void btnEdit_Click(object sender, EventArgs e) { if (intSaleReturnId == 0) { MessageBox.Show("กรุณาเลือกรายการก่อนค่ะ"); } else { SaleReturn.frmEditSaleReturn frm = new frmEditSaleReturn(); frm.setSaleReturnId = intSaleReturnId.ToString(); frm.ShowDialog(); } }
private void btnEdit_Click(object sender, EventArgs e) { SaleReturn.frmEditSaleReturn frm = new frmEditSaleReturn(); frm.setSaleReturnId = lblSaleReturnId.Text.Trim(); frm.ShowDialog(); }