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