private void btnCustomerSave_Click(object sender, EventArgs e) { etCustomer.Id = txtIdMember.Text; etCustomer.Name = txtNameMember.Text; etCustomer.DOB = dtpMember.Text; if (rdMemberMan.Checked == true) { etCustomer.Sex = "nam"; } else { etCustomer.Sex = "nữ"; } etCustomer.Phone = txtPhoneMember.Text; if (AddCustomerFlag == true) { etCustomer.Id = txtIdMember.Text; etCustomer.Name = txtNameMember.Text; etCustomer.DOB = dtpMember.Text; if (rdMemberMan.Checked == true) { etCustomer.Sex = "nam"; } else { etCustomer.Sex = "nữ"; } etCustomer.Phone = txtPhoneMember.Text; busCustomer.AddCustomer(etCustomer); ShowCustomer("where PhoneNumber =N'" + txtPhoneMember.Text + "'"); LockUpdateCustomer(); } /* else * { * etCustomer.Id = txtIdMember.Text; * busCustomer.UpdateCustomer(etCustomer); * ShowCustomer(""); * LockUpdateCustomer(); * }*/ }